Template:Tmpl: Difference between revisions
Content added Content deleted
(Trying to build a shorthand template.) |
(Ok, that should do it.) |
||
Line 1: | Line 1: | ||
⚫ | |||
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> |
|||
⚫ | |||
Becomes: |
|||
⚫ | |||
</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. |
|||
⚫ |
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.