Template:T: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 14: Line 14:


== Usage ==
== Usage ==
{| style="width: 70%; text-align: left; margin: left;" class="wikitable"
{| style="width: 100%; text-align: left; margin: left;" class="wikitable"
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Default Usage</span><br><span style="font-weight: normal;">To simply create a link to a template, pass the template name.</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Default Usage</span><br><span style="font-weight: normal;">To simply create a link to a template, pass the template name.</span>
|-
|-
! width=25%|You Type
! width=30%|You Type
!You Get
!You Get
|-
|-
| style="text-align: left; background-color: white;" |<pre>
| style="text-align: center; background-color: white;" |<pre>
{{t|TEMPLATENAME}}
{{t|TEMPLATENAME}}
</pre>
</pre>

Revision as of 00:58, 18 April 2025

Description

This template is used to provide stylized formatting to template displays without actually using the template itself. It will provide a link to that template's page in the Template namespace. Most commonly, this template is used for demonstrative or linking purposes in the Help Guide or on a Template's Description page.

Usage

Default Usage
To simply create a link to a template, pass the template name.
You Type You Get
{{t|TEMPLATENAME}}
{{TEMPLATENAME}}
Count Parameter
You can specify the number of columns in the output through use of the count= parameter.
You Type You Get
{{t|TEMPLATENAME|PARAMETER1|PARAMETER2}}
{{TEMPLATENAME}}

{{t|template name|first parameter|second parameter}}.

To pass named parameters, you can

  • use name &#61; value{{t|Rosharan numeric date|year &#61; 1172|month &#61; 5|week &#61; 10|day &#61; 6}};
  • surround it in <nowiki /> tags — {{t|Rosharan numeric date|<nowiki>year=1172|month=5|week=1|day=6</nowiki>}}; or
  • use correctly numbered parameters.

{{Columns|count=3|* Item 1* Item 2}}

Pages using Template