Template:Tmpl: Difference between revisions
Content added Content deleted
(→Demonstration: Indent before, reduce indent for after. Use nowiki instead of pre.) |
(→Demonstration: Use Template:nwtag for noinclude syntax.) |
||
Line 3: | Line 3: | ||
==Demonstration== |
==Demonstration== |
||
===Before=== |
===Before=== |
||
:<nowiki>Whenever you create a template, be sure to place {{tmpl|template}} in a |
:<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 |
: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> |
Revision as of 16:07, 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 {{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.