Template:Tmpl: Difference between revisions

Add span for class.
(Trying to build a shorthand template.)
 
(Add span for class.)
 
(4 intermediate revisions by the same user not shown)
Line 1:
<includeonly><span class=wikicode>[[Template:{{{1}}}|<nowiki>{{</nowiki>{{{1}}}<nowiki>}}</nowiki>]]</span></includeonly><noinclude>This template provides shorthand for simultaneously linking to and demonstrating templates.
Test short syntax
<nowiki>{{</nowiki>{{{1}}}<nowiki>}}</nowiki>
 
==Demonstration==
Test full syntax
===Before===
[[Template:{{{1}}}|<nowiki>{{</nowiki>{{{1}}}<nowiki>}}</nowiki>]]
:<nowiki>Whenever you create a template, be sure to place {{tmpl|template}} in a {{nwtag|noinclude}} section, so it's easily identified on the wiki, and so {{tmpl|template}} doesn't get transcluded into the page your template is used in.</nowiki>
===After===
:Whenever you create a template, be sure to place {{tmpl|template}} in a {{nwtag|noinclude}} section, so it's easily identified on the wiki, and so {{tmpl|template}} doesn't get transcluded into the page your template is used in.
 
{{template}}</noinclude>
<noinclude>This template provides shorthand for simultaneously linking to and demonstrating templates.
 
{{template}}
</noinclude>