Template:Tl
(improve docs; fix mistake in examples) |
m (minor wording chg) |
||
| Line 7: | Line 7: | ||
==Purpose== | ==Purpose== | ||
| − | This template simplifies the formatting of example template calls in '''non-article''' pages, such as [[Iron Chariots Wiki:Templates]], when a link to the page for the template itself is desired. Use [[Template:T]] if no link is desired (for example, in usage notes on template pages where the link | + | This template simplifies the formatting of example template calls in '''non-article''' pages, such as [[Iron Chariots Wiki:Templates]], when a link to the page for the template itself is desired. Use [[Template:T]] if no link is desired (for example, in usage notes on template pages, where the link would be unnecessary). |
This template should never be used in articles in the [[Project:Namespace|main namespace]]. | This template should never be used in articles in the [[Project:Namespace|main namespace]]. | ||
Revision as of 18:11, 18 November 2007
{{[[Template:{{{1}}}|{{{1}}}]]}}
Contents |
Purpose
This template simplifies the formatting of example template calls in non-article pages, such as Iron Chariots Wiki:Templates, when a link to the page for the template itself is desired. Use Template:T if no link is desired (for example, in usage notes on template pages, where the link would be unnecessary).
This template should never be used in articles in the main namespace.
Usage
- {{tl|Template name}}
- {{tl|Template name|parameter}}
- {{tl|Template name|parameter1|parameter2}}
- {{tl|Template name|parameter1|parameter2|parameter3}}
- {{tl|Template name|parameter1|parameter2|parameter3|parameter4}}
Mnemonic: The name "tl" is short for "template link".
Examples
With one (required) parameter, this template provides the same simple functionality as Wikipedia:Template:Tl, but with the monospace font formatting of Wikipedia:Template:Tlx:
- {{tl|wikipedia}} → {{wikipedia}}
With more than one parameter (up to five, total, including the template name), it works basically like Wikipedia:Template:Tlx, except without the sister-project or language features of that template:
- {{tl|wikipedia|''Article title''}} → {{wikipedia|Article title}}
- {{tl|wikipedia|''Article title''|''Display title''}} → {{wikipedia|Article title|Display title}}
- {{tl|wikipedia|List of apologetic works|Apologetic works}} → {{wikipedia|List of apologetic works|Apologetic works}}
Remember, the purpose of this template is to display the raw wikicode of an example template call.
See also
- Template:T (version with no link on the template name)