Template:Tmpl: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Demonstration: Before and after.)
(→‎Demonstration: Indent before, reduce indent for after. Use nowiki instead of pre.)
Line 3: Line 3:
==Demonstration==
==Demonstration==
===Before===
===Before===
<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>
:<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>
===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 '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>

Revision as of 15:59, 9 November 2010

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 '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' 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.