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 +explanation
m linkfix
Line 5: Line 5:
|1stat=
|1stat=
|2=2
|2=2
|2d=display name (displayed as specified)
|2d=display name (displayed as-it-is)
|2def=parameter 1
|2def=parameter 1
|2stat=optional-
|2stat=optional-
|3=3
|3=3</code><br><code>lang
|3d=interwiki language code (can also be specified with <code>lang=</code>)
|3d=interwiki language code ({{w|List of ISO 639-1 codes|ISO 639}}), if the template is in another Wikipedia<br>can also be specified with <code>lang=</code>
|3def=
|3def=
|3stat=optional-
|3stat=optional-
|4=4
|4=4
|4d={{#switch:{{BASEPAGENAME}}|T0=+/-  to precede the category name with the namespace <code>Category:</code>
|4d={{#switch:{{BASEPAGENAME}}|T0=+/-  to precede the category name with the namespace <code>Template:</code>
:'''+''' ("plus" sign)  to make <tt>Category:</tt> a part of the link,
:'''+''' ("plus" sign)  to make <tt>Template:</tt> a part of the link,
:'''-''' ("minus" sign) to precede <tt>Category:</tt> as a plain text.<br>
:'''-''' ("minus" sign) to precede <tt>Template:</tt> as a plain text.<br>
The +/- parameter can as well be specified with parameter 2 or 3<br>  
The +/- parameter can as well be specified with parameter 2 or 3<br>  
(If ''both'' signs are specified, "+" has precedence).|[this parameter only for {{t0|T0|+}}]}}
(If ''both'' signs are specified, "+" has precedence).|[this parameter only for {{t0|T0|+}}]}}
Line 21: Line 21:
|4stat=optional-
|4stat=optional-


|5=incl
|5=incl</code><br><code>i
|5aliases=i
|5d=numeric value,
|5d=numeric value,
*0:  none of the brackets are part of the link<!-- , &ensp;like {{Tl|Tl|Tl}} -->
*0:  none of the brackets are part of the link<!-- , &ensp;like {{Tl|Tl|Tl}} -->

Revision as of 07:56, 16 March 2018

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-it-is)parameter 1optional
3
lang
interwiki language code (ISO 639), if the template is in another Wikipedia
can also be specified with lang=
emptyoptional
4[this parameter only for Template:T0]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

Localization

This template is not intended to be localized.

The template does not generate any localizable text.



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 i appearance
T 2 {{T}}
T0 8 T0
T1 1 {{T1}}
T2 0 {{T2}}
Tl 2 {{Tl}}

This means that each of them can be converted into each one of the others by just replacing that parameter:

T {{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}} {{T/doc}}
T0 {{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|8}}}}}}|code={{{code|}}}}} T/doc
T1 {{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|1}}}}}}|code={{{code|}}}}} {{T/doc}}
T2 {{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|0}}}}}}|code={{{code|}}}}} {{T/doc}}
Tl <tt>{{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}}</tt> {{T/doc}}
Tl {{#tag:tt|{{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}}}} {{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.