Template:Tl

From Iron Chariots Wiki
(Difference between revisions)
Jump to: navigation, search
(improve docs; fix mistake in examples)
(use 'nowiki' instead of {((} for symmetry with Template:T)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<tt><nowiki>{{</nowiki>[[Template:{{{1}}}|{{{1}}}]]{{if|
 
<tt><nowiki>{{</nowiki>[[Template:{{{1}}}|{{{1}}}]]{{if|
  test={{{2|}}}|then=&#124;{{{2}}}|else=}}{{if|
+
  test={{{2|}}}|then={{!}}{{{2}}}|else=}}{{if|
  test={{{3|}}}|then=&#124;{{{3}}}|else=}}{{if|
+
  test={{{3|}}}|then={{!}}{{{3}}}|else=}}{{if|
  test={{{4|}}}|then=&#124;{{{4}}}|else=}}{{if|
+
  test={{{4|}}}|then={{!}}{{{4}}}|else=}}{{if|
  test={{{5|}}}|then=&#124;{{{5}}}|else=}}<nowiki>}}</nowiki></tt><noinclude>
+
  test={{{5|}}}|then={{!}}{{{5}}}|else=}}<nowiki>}}</nowiki></tt><noinclude>{{doc}}
 
+
[[Category:Templates|Tl]]
==Purpose==
+
[[Category:Inline templates|Tl]]
 
+
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 [[Project:Namespace|main namespace]].
+
 
+
==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]]:
+
* {{t|tl|wikipedia}} &rarr; {{tl|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 [[Wikipedia:Template:Tlx|that template]]:
+
* {{t|tl|wikipedia|<nowiki>''Article title''</nowiki>}} &rarr; {{tl|wikipedia|''Article title''}}
+
* {{t|tl|wikipedia|<nowiki>''Article title''</nowiki>|<nowiki>''Display title''</nowiki>}} &rarr; {{tl|wikipedia|''Article title''|''Display title''}}
+
* {{t|tl|wikipedia|List of apologetic works|Apologetic works}} &rarr; {{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==
+
* [[Template:T]] (version with no link on the template name)
+
 
+
 
[[Category:Wikicode templates|Tl]]
 
[[Category:Wikicode templates|Tl]]
 
</noinclude>
 
</noinclude>

Latest revision as of 16:40, 11 August 2008

{{[[Template:{{{1}}}|{{{1}}}]]}}

The documentation for this template is transcluded from Template:Tl/doc. Please edit that page if you want to change something in the documentation. Do not edit this page unless you know what you're doing.
Purpose
This template simplifies the formatting of example template calls (i.e., to show the raw wikicode required) 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 a template page, in which case the link is unnecessary).
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
  1. 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|stub}}{{stub}}
  2. 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|delete|''reason''}}{{delete|reason}}
Note
This template should never be used in articles in the main namespace.
See also
  • Template:T — version with no link on the template name
Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox