Template:T: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 10: Line 10:
-->}}</code></includeonly><noinclude>
-->}}</code></includeonly><noinclude>
== Description ==
== Description ==
{{for|Wikipedia: Template: Tlx|additional details and information}}
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 [[:Category:Templates|Template namespace]]. Most commonly, this template is used for demonstrative or linking purposes in the [[:Help:Contents|Help Guide]] or on a Template's Description page.
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 [[:Category:Templates|Template namespace]]. Most commonly, this template is used for demonstrative or linking purposes in the [[:Help:Contents|Help Guide]] or on a Template's Description page.
{{for|Wikipedia: Template: Tlx|additional details and information}}


== Usage ==
== Usage ==
{| style="width: 100%; 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's name.</span>
|-
|-
! width=25%|You Type
! width=25%|You Type
Line 83: Line 83:
| colspan="2" style="background-color: white; text-align: center;"|{{t|Example|name&#61;INPUT|date&#61;INPUT |location&#61;INPUT}}
| colspan="2" style="background-color: white; text-align: center;"|{{t|Example|name&#61;INPUT|date&#61;INPUT |location&#61;INPUT}}
|}
|}
To pass named parameters, you can
* use <code>name &#<span>61</span>; value</code> — {{t|t|Rosharan numeric date|year &#<span>61</span>; 1172|month &#<span>61</span>; 5|week &#<span>61</span>; 10|day &#<span>61</span>; 6}};
* surround it in <code><nowiki><nowiki /></nowiki></code> tags — <code><nowiki>{{t|Rosharan numeric date|<nowiki>year=1172|month=5|week=1|day=6</nowiki></nowiki>}}</code>; or
* use correctly numbered parameters.
{{t|Character|2=name=INPUT}}


== Pages using Template ==
== Pages using Template ==

Revision as of 01:57, 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's name.
You Type You Get
{{t|Example}}
{{Example}}
Unnamed Parameter
To demonstrate unnamed parameters, simply pass the input.
You Type You Get
{{t
|Example
|PARAMETER1
|PARAMETER2
|PARAMETER3
}}
{{Example|PARAMETER1|PARAMETER2|PARAMETER3}}
Named Parameter
Named parameters will not appear in the output if passed using =.
You can pass named parameters in one of three ways:

1. Use a unicode equals sign (&#61;) instead of =.
2. Surround the parameters in a <nowiki> tag.
3. Use correctly numbered parameters.
You Type

{{t
|Example
|name&#61;INPUT
|date&#61;INPUT
|location&#61;INPUT
}}

{{t
|Example
<nowiki>
|name=INPUT
|date=INPUT
|location=INPUT
</nowiki>
}}

{{t
|Example
|2=name=INPUT
|3=date=INPUT
|4=location=INPUT
}}

You Get
{{Example|name=INPUT|date=INPUT|location=INPUT}}

Pages using Template