Template:Tmpl: Difference between revisions

From Rosetta Code
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>

Revision as of 15:02, 9 November 2010

This template provides shorthand for simultaneously linking to and demonstrating templates.

Demonstration

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.

Becomes:

Whenever you create a template, be sure to place {{template}} in a 'noinclude' section, so it's easily identified on the wiki, and so {{template}} doesn't get transcluded into the page your template is used in.



This is a template. There are many others. See Category:RCTemplates for a complete list of templates.