Template:Tmpl: Difference between revisions

Content added Content deleted
(Trying to build a shorthand template.)
 
(Ok, that should do it.)
Line 1: Line 1:
<includeonly>[[Template:{{{1}}}|<nowiki>{{</nowiki>{{{1}}}<nowiki>}}</nowiki>]]</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
[[Template:{{{1}}}|<nowiki>{{</nowiki>{{{1}}}<nowiki>}}</nowiki>]]


<pre>Whenever you create a template, be sure to place {{tmpl|template}} in a '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.</pre>
<noinclude>This template provides shorthand for simultaneously linking to and demonstrating templates.


Becomes:
{{template}}

</noinclude>
::Whenever you create a template, be sure to place {{tmpl|template}} in a '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>