Template:T

(Difference between revisions)
Jump to: navigation, search
(+ sortkey)
(rework docs a bit; fix mistake in examples)
Line 7: Line 7:
 
==Purpose==
 
==Purpose==
  
This template simplifies the formatting of example template calls. Use [[Template:Tl]] if you want the template name to be linked to the page for the template itself.
+
This template simplifies the formatting of example template calls in '''non-article''' pages, such as on template pages themselves (to show examples of usage). Use [[Template:Tl]] if you want the template name to be linked to the page for the template itself (e.g., when used on non-template pages).
  
This template should only be used in ''non-article pages'' such as [[Iron Chariots Wiki:Templates]] or [[Template:Delete]], '''never in articles'''.
+
This template should never be used in articles in the [[Project:Namespace|main namespace]].
  
 
==Usage==
 
==Usage==
 +
 +
* {{t|t|''Template name''}}
 +
* {{t|t|''Template name''|''parameter''}}
 +
* {{t|t|''Template name''|''parameter1''|''parameter2''}}
 +
* {{t|t|''Template name''|''parameter1''|''parameter2''|''parameter3''}}
 +
* {{t|t|''Template name''|''parameter1''|''parameter2''|''parameter3''<nowiki>|</nowiki>''parameter4''}}
 +
 +
Mnemonic: The name "t" is short for "template".
 +
 +
==Examples==
  
 
With one (required) parameter, this template provides the same simple functionality as [[Wikipedia:Template:Tl]], but without the link and 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 without the link and with the monospace font formatting of [[Wikipedia:Template:Tlx]]:
 
* {{t|t|wikipedia}} &rarr; {{t|wikipedia}}
 
* {{t|t|wikipedia}} &rarr; {{t|wikipedia}}
  
With more than one parameter (up to five, total), it works basically like [[Wikipedia:Template:Tlx]], except, again, without the link and without the sister-project or language features (see [[Wikipedia:Template:Tlx|that template]] for details):
+
With more than one parameter (up to five, total, including the template name), it works basically like [[Wikipedia:Template:Tlx]], except, again, without the link and also without the sister-project or language features (see [[Wikipedia:Template:Tlx|that template]] for details):
* {{t|t|wikipedia|''Article title''}} &rarr; {{t|wikipedia|''Article title''}}
+
* {{t|t|wikipedia|<nowiki>''Article title''</nowiki>}} &rarr; {{t|wikipedia|''Article title''}}
* {{t|t|wikipedia|''Article title''|''Display title''}} &rarr; {{t|wikipedia|''Article title''|''Display title''}}
+
* {{t|t|wikipedia|<nowiki>''Article title''</nowiki>|<nowiki>''Display title''</nowiki>}} &rarr; {{t|wikipedia|''Article title''|''Display title''}}
 
* {{t|t|wikipedia|List of apologetic works|Apologetic works}} &rarr; {{t|wikipedia|List of apologetic works|Apologetic works}}
 
* {{t|t|wikipedia|List of apologetic works|Apologetic works}} &rarr; {{t|wikipedia|List of apologetic works|Apologetic works}}
  
Note that the name "t" is short for "template".
+
Remember, the purpose of this template is to display the raw wikicode of an example template call.
  
 
==See also==
 
==See also==
* [[Template:Tl]] &mdash; version that links the template name
+
* [[Template:Tl]] (version that links the template name)
  
 
[[Category:Wikicode templates|T]]
 
[[Category:Wikicode templates|T]]
 
</noinclude>
 
</noinclude>

Revision as of 23:50, 15 November 2007

{{{{{1}}}}}

Contents

Purpose

This template simplifies the formatting of example template calls in non-article pages, such as on template pages themselves (to show examples of usage). Use Template:Tl if you want the template name to be linked to the page for the template itself (e.g., when used on non-template pages).

This template should never be used in articles in the main namespace.

Usage

  • {{t|Template name}}
  • {{t|Template name|parameter}}
  • {{t|Template name|parameter1|parameter2}}
  • {{t|Template name|parameter1|parameter2|parameter3}}
  • {{t|Template name|parameter1|parameter2|parameter3|parameter4}}

Mnemonic: The name "t" is short for "template".

Examples

With one (required) parameter, this template provides the same simple functionality as Wikipedia:Template:Tl, but without the link and with the monospace font formatting of Wikipedia:Template:Tlx:

  • {{t|wikipedia}}{{wikipedia}}

With more than one parameter (up to five, total, including the template name), it works basically like Wikipedia:Template:Tlx, except, again, without the link and also without the sister-project or language features (see that template for details):

  • {{t|wikipedia|''Article title''}}{{wikipedia|Article title}}
  • {{t|wikipedia|''Article title''|''Display title''}}{{wikipedia|Article title|Display title}}
  • {{t|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

Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox