Template:Tmpl: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Demonstration: Indent before, reduce indent for after. Use nowiki instead of pre.)
(Add span for class.)
 
(One intermediate revision by the same user not shown)
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==
===Before===
===Before===
:<nowiki>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.</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===
===After===
: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.
: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>
{{template}}</noinclude>

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.