|
|
| Line 1: |
Line 1: |
| {{#switch:{{BASEPAGENAME}}
| | Zakria badr |
| |NLD={{Redirects|NED}}
| |
| |T={{Redirects|TTT}}
| |
| }}
| |
| | |
| | |
| {{#ifeq:{{PAGENAME}}|Tl|{{Created with/layout|text=For the '''Tagalog language''' template, see {{T|tgl}}|logo=Arrows-move.svg}}}}<!--
| |
| -->{{#switch:{{PAGENAME}}|T|Tl|T/main = {{Heavily used template|3=+}}}}<!--
| |
| | |
| -->{{#ifeq: {{PAGENAME}} | T/main
| |
| | {{Mbox
| |
| |text = The {{T0|T/main|+|case=l}} is the main template of <!-- with simplified code and additional possible parameters. -->
| |
| | |
| * {{T0|T |+|case=l}}
| |
| * {{T0|T0|+|case=l}}
| |
| * {{T0|T1|+|case=l}}
| |
| * {{T0|T2|+|case=l}}
| |
| * {{T0|Tl|+|case=l}}
| |
| |type = message
| |
| }}}}<!--
| |
| -->__FORCETOC__<!--
| |
| -->{{TemplateBox
| |
| |name = {{BASEPAGENAME}}
| |
| |desc = '''{{T0|{{BASEPAGENAME}}|T}}''' links to a '''T'''emplate. {{BASEPAGENAME}} creates a formatted link to a template{{nobold|{{#switch:{{BASEPAGENAME}}
| |
| |T =  and surrounds it with <code>{{</code>...<code>}}</code> making the brackets a part of the link
| |
| |T0 =  without surrounding brackets
| |
| |T1 =  and surrounds it with two brackets making the inner bracket a part of the link
| |
| |T2 =  and surrounds it with two brackets which are not a part of the link
| |
| |Tl =  in teletype style and surrounds it with two brackets which are not a part of the link
| |
| }}}}.
| |
| | |
| |1 = 1
| |
| |1d = template name (any namespace is ignored)
| |
| |1def = {{BASEPAGENAME}}
| |
| |1stat =
| |
| | |
| |2 = 2
| |
| |2d = display name (displayed as-it-is)
| |
| |2def = parameter 1
| |
| |2stat = optional-
| |
| | |
| |3 = 3
| |
| |3aliases = lang
| |
| |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 =
| |
| |3stat = optional-
| |
| | |
| |4 = 4
| |
| |4d = +/- to precede the template name with the namespace <code>Template:</code>
| |
| | |
| * '''<code>+</code>''' (plus sign) to make <code>Template:</code> a part of the link,
| |
| * '''<code>-</code>''' (minus sign) to precede <code>Template:</code> as plain text.
| |
| The +/- parameter can as well be specified with parameter 2 or 3;<br />(when ''both'' signs are specified, "+" has precedence).
| |
| |4def =
| |
| |4stat = optional-
| |
| | |
| |5 = incl
| |
| |5aliases = i
| |
| |5d = <code>i</code> or <code>incl</code> is a one-digit formatting option:
| |
| | |
| * 0: none of the brackets are part of the link<!-- ,  like {{Tl|Tl|Tl}} -->
| |
| * 1: the inner brackets are part of the link <!--  like {{T1|T1}} -->
| |
| * 2: both brackets are part of the link<!-- ,  like {{T|T}} -->
| |
| * 3: like <code>i=2</code>, with monospace font
| |
| * 4: like <code>i=0</code> but with the name in teletype style <!-- keyboard style -->
| |
| * 5: like <code>i=1</code> but with the name in teletype style
| |
| * 6: like <code>i=2</code> but with the name in teletype style
| |
| * 8: without surrounding brackets
| |
| * 9: like <code>i=8</code> but with the name in teletype style ''large'' (font-size:128%)
| |
| |5def = {{#switch:{{BASEPAGENAME}}|T2=0|T1=1|T=2||Tl=3|T0=8|#default=?}}
| |
| |5stat = optional-
| |
| | |
| |6 = code
| |
| |6d = any value, for a surrounding <code><nowiki><code></nowiki></code> tag  (like {{T|Tl2}}).<br /> With <code>code=tt</code> also the surrounding brackets are in teletype style.
| |
| |6stat = optional-
| |
| | |
| |8 = link
| |
| |8d = returns plain text instead of a link when set to <code>link=no</code>
| |
| |8stat = optional-
| |
| | |
| |9 = case
| |
| |9d = for formatting of the namespace prefix:
| |
| | |
| * <code>case=l</code> lowercase display "{{lcfirst:{{ns:10}}}}" instead of "{{ns:10}}"
| |
| * <code>case=i</code> internationalized display, in general a link
| |
| * <code>case=n</code> internationalized display, without linking it
| |
| |9stat = optional-
| |
| | |
| |10 = i18n
| |
| |10d = another language than <code><nowiki>{{int:lang}}</nowiki></code> for namespace translation (when <code>case=i</code> or <code>case=n</code>)
| |
| |10def = {{int:lang}}
| |
| |10stat = optional-
| |
| | |
| |11 = parm
| |
| |11d = to display templates parameters  (like {{T|Tlx}})<br />
| |
| Usage e.g. <code>parm=template name</code> or <code>parm=1=template name</code><br />
| |
| or  <code><nowiki>parm=&#124;1=&#124;2=&#124;code=y</nowiki></code>" gives
| |
| "<code><nowiki>|1=|2=|code=y</nowiki></code>".
| |
| :{{F|Font Awesome 5 solid long-arrow-alt-right.svg|Z|18}} For a better appearing and ''easier to format'' explanatory, use the meta template {{T1|Tle|<code><big>Tle</big></code>|i=6}}.
| |
| |11stat = optional-
| |
| | |
| |12 = full
| |
| |12d = expanded display: {{T|Example|5=full|+|i=2}}  (like {{T|Lts}})<br/>
| |
| request this expansion with either <code>full=5</code> or <code>5=full</code>.
| |
| |12stat = optional-
| |
| | |
| |namespace = all
| |
| |usergroup = all
| |
| |placement =
| |
| |usage-notes =
| |
| |type =
| |
| |example =
| |
| |example-value =
| |
| |seealso =
| |
| |setscats =
| |
| |lines =
| |
| |shorthand =
| |
| |relieson =
| |
| |mustbesubst =
| |
| |i18n-method = -
| |
| |i18n-desc = The template does not generate any localizable text;<br />
| |
| with + or - always the ''namespace'' in English: "{{ns:10}}" is displayed;<br />
| |
| only in combination with <code>case=i</code> or <code>case=n</code> the namespace can be translated using the {{T2|i18n/namespace|LangSwitch}} construct (according to <code>i18n</code>).
| |
| }}
| |
| {{Commons:Link templates/T-doc-expansion}} <!-- subpage -->
| |
| | |
| {{Commons:Link templates/Template links}} <!-- linktab -->
| |
| | |
| <includeonly>
| |
| [[Category:Internal link templates]]
| |
| [[Category:Interwiki link templates]]
| |
| {{#ifeq:{{PAGENAME}}|T|[[Category:One-letter templates| ]]}}
| |
| </includeonly>
| |