Template:Tmpl: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Demonstration: Use Template:nwtag for noinclude syntax.)
(Add span for class.)
 
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.
<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.


==Demonstration==
==Demonstration==

Latest revision as of 14:06, 4 January 2011

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

Demonstration

Before

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.

After

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