Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:T/doc: Difference between revisions

Template page
m format
m format
Line 1: Line 1:
{{TemplateBox
{{TemplateBox
|1=1
|1=1
|1d=template name
|1d=template name (any namespace is ignored)
|1def=[[Template:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]
|1def=[[Template:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]
|1stat=
|1stat=
|2=2
|2=2
|2d=display name
|2d=display name (displayed as specified)
|2def=parameter 1
|2def=parameter 1
|2stat=optional-
|2stat=optional-
Line 34: Line 34:
|6=parm
|6=parm
|6d=to display templates parameters &ensp; (like {{T|Tlx}}) <br> e.g."<code><nowiki>parm=&amp;#124;1=&amp;#124;2=&amp;#124;code=y</nowiki></code>"gives "<code><nowiki>&#124;1=&#124;2=&#124;code=y</nowiki></code>"<br>
|6d=to display templates parameters &ensp; (like {{T|Tlx}}) <br> e.g."<code><nowiki>parm=&amp;#124;1=&amp;#124;2=&amp;#124;code=y</nowiki></code>"gives "<code><nowiki>&#124;1=&#124;2=&#124;code=y</nowiki></code>"<br>
::For a better and easier formatting explanatory, use {{T|Tle}}
:For a better appearing and easier to format explanatory, use {{T|Tle}}
|6def=
|6def=
|6stat=optional-
|6stat=optional-
Line 45: Line 45:
|T2=&nbsp;and surrounds it with two brackets making the them a part of the link
|T2=&nbsp;and surrounds it with two brackets making the them a part of the link
|Tl=}}.
|Tl=}}.
|namespace=
|namespace=all
|usergroup=
|usergroup=all
|placement=
|placement=
|usage-notes=
|usage-notes=
Line 63: Line 63:
<u>Note:</u> The templates T, T0, T1, T2, Tl contain the same code with the only difference of the default value for the parameter <code>incl=</code>.<br>
<u>Note:</u> The templates T, T0, T1, T2, Tl contain the same code with the only difference of the default value for the parameter <code>incl=</code>.<br>
{| class="wikitable" style="text-align:center"
{| class="wikitable" style="text-align:center"
! Template !! value
! Template !! value !! appearance
|-
|-
|{{T0|T}}  || 2
|{{T0|T}}  || 2 || {{T}}
|-
|-
|{{T0|T0}} || 8
|{{T0|T0}} || 8 || {{T0}}
|-
|-
|{{T0|T1}} || 1
|{{T0|T1}} || 1 || {{T1}}
|-
|-
|{{T0|T2}} || 0
|{{T0|T2}} || 1  || {{T2}}
|-
|-
|{{T0|Tl}} || 2
|{{T0|Tl}} || 2 || {{Tl}}
|}
|}
<small>(Because the templates T and Tl are both editprotected currently only T0 and T1 are maintained; the examples below may not work well with other templates.)</small><br>
<small>(Because the templates T and Tl are both editprotected currently only T0 and T1 are maintained; the examples below may not work well with other templates.)</small><br>

Revision as of 10:12, 4 August 2016

T links to a Template. It creates a formatted link to a template and surrounds it with {{...}} making the brackets a part of the link.

Usage

{{T |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1template name (any namespace is ignored)Toptional
2display name (displayed as specified)parameter 1optional
3interwiki language code (can also be specified with lang=)emptyoptional
incl
i
numeric value,
  • 0: none of the brackets are part of the link
  • 1: the inner brackets are part of the link
  • 2: both brackets are part of the link
  • 4: like i=0 but with the name typewritten
  • 5: like i=1 but with the name typewritten
  • 6: like i=2 but with the name typewritten
  • 8: without surrounding brackets
  • 9: like i=8 but with the name typewritten
2optional
codeany value, for a sourrounding <code> tag  (like {{Tl2}})
With code=tt also the surrounding brackets are typewritten
emptyoptional
parmto display templates parameters   (like {{Tlx}})
e.g."parm=&#124;1=&#124;2=&#124;code=y"gives "|1=|2=|code=y"
For a better appearing and easier to format explanatory, use {{Tle}}
emptyoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users


Note: The templates T, T0, T1, T2, Tl contain the same code with the only difference of the default value for the parameter incl=.

Template value appearance
T 2 {{T/doc}}
T0 8 T/doc
T1 1 {{T/doc}}
T2 1 {{T/doc}}
Tl 2 {{T/doc}}

(Because the templates T and Tl are both editprotected currently only T0 and T1 are maintained; the examples below may not work well with other templates.)

Examples

with code=y


{{Commons:Link templates/Template links}}


Cookies help us deliver our services. By using our services, you agree to our use of cookies.