Template:Tl

From Iron Chariots Wiki
(Difference between revisions)
Jump to: navigation, search
(polishing; now using {t})
(use 'nowiki' instead of {((} for symmetry with Template:T)
 
(7 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]]
 
+
[[Category:Wikicode templates|Tl]]
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 should only be used in ''non-article pages'' such as [[Iron Chariots Wiki:Templates]] or [[:Category:Pages for deletion]], '''never in articles'''.
+
 
+
Note that the name "tl" is short for "template link".
+
 
+
==Usage==
+
 
+
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), it works basically like [[Wikipedia:Template:Tlx]], except without the sister-project or language features (see [[Wikipedia:Template:Tlx|that template]] for details):
+
* {{t|tl|wikipedia|''Article title''}} &rarr; {{tl|wikipedia|''Article title''}}
+
* {{t|tl|wikipedia|''Article title''|''Display title''}} &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}}
+
 
+
==See also==
+
* [[Template:T]] &mdash; no-link version
+
 
+
[[Category:Informational templates]]
+
 
</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