Template:Tl
(+ sortkey) |
(improve docs; fix mistake in examples) |
||
| Line 7: | Line 7: | ||
==Purpose== | ==Purpose== | ||
| − | This template simplifies the formatting of example template calls when a link to the page for the template itself is desired. Use [[Template:T]] if no link is desired. | + | 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 is unnecessary). |
| − | This template should | + | This template should never be used in articles in the [[Project:Namespace|main namespace]]. |
==Usage== | ==Usage== | ||
| + | |||
| + | * {{t|tl|''Template name''}} | ||
| + | * {{t|tl|''Template name''|''parameter''}} | ||
| + | * {{t|tl|''Template name''|''parameter1''|''parameter2''}} | ||
| + | * {{t|tl|''Template name''|''parameter1''|''parameter2''|''parameter3''}} | ||
| + | * {{t|tl|''Template name''|''parameter1''|''parameter2''|''parameter3''<nowiki>|</nowiki>''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]]: | 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]]: | ||
* {{t|tl|wikipedia}} → {{tl|wikipedia}} | * {{t|tl|wikipedia}} → {{tl|wikipedia}} | ||
| − | With more than one parameter (up to five, total), it works basically like [[Wikipedia:Template:Tlx]], except without the sister-project or language features | + | 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 [[Wikipedia:Template:Tlx|that template]]: |
| − | * {{t|tl|wikipedia|''Article title''}} → {{tl|wikipedia|''Article title''}} | + | * {{t|tl|wikipedia|<nowiki>''Article title''</nowiki>}} → {{tl|wikipedia|''Article title''}} |
| − | * {{t|tl|wikipedia|''Article title''|''Display title''}} → {{tl|wikipedia|''Article title''|''Display title''}} | + | * {{t|tl|wikipedia|<nowiki>''Article title''</nowiki>|<nowiki>''Display title''</nowiki>}} → {{tl|wikipedia|''Article title''|''Display title''}} |
* {{t|tl|wikipedia|List of apologetic works|Apologetic works}} → {{tl|wikipedia|List of apologetic works|Apologetic works}} | * {{t|tl|wikipedia|List of apologetic works|Apologetic works}} → {{tl|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== | ==See also== | ||
| − | * [[Template:T]] | + | * [[Template:T]] (version with no link on the template name) |
[[Category:Wikicode templates|Tl]] | [[Category:Wikicode templates|Tl]] | ||
</noinclude> | </noinclude> | ||
Revision as of 20:46, 17 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 is 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)