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
mNo edit summary
m Reverted edits by ~2026-33008-48 (talk) to last revision by 158.106.52.10
 
(20 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{#switch:{{BASEPAGENAME}}
|NLD={{Redirects|NED}}
|T={{Redirects|tnlb}}
}}
{{#ifeq:{{PAGENAME}}|Tl|{{Created with/layout|text=For the '''Tagalog language''' template, see {{T|tgl}}|logo=Arrows-move.svg}}}}<!--
{{#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}}}}<!--
-->{{#switch:{{PAGENAME}}|T|Tl|T/main = {{used in system}}}}<!--


-->{{#ifeq: {{PAGENAME}} | T/main
-->{{#ifeq: {{PAGENAME}} | T/main
Line 16: Line 22:
-->{{TemplateBox
-->{{TemplateBox
|name  = {{BASEPAGENAME}}
|name  = {{BASEPAGENAME}}
|desc  = '''{{T0|{{BASEPAGENAME}}|T}}''' links to a '''T'''emplate. {{BASEPAGENAME}} creates a formatted link to a template{{nobold|{{#switch:{{BASEPAGENAME}}
|desc  = {{Nobold|The '''{{T2|{{BASEPAGENAME}}|T}}''' template creates a formatted link to a '''T'''emplate.}}<br> The {{BASEPAGENAME}} template creates a formatted link to a template{{#switch:{{BASEPAGENAME}}
   |T  = &#32;and surrounds it with <code>{{</code>...<code>}}</code> making the brackets a part of the link
   |T  = &#32;and surrounds it with braces (<code>{{</code>...<code>}}</code>) included in the link label
   |T0 = &#32;without surrounding brackets
   |T0 = &#32;without surrounding braces
   |T1 = &#32;and surrounds it with two brackets making the inner bracket a part of the link
   |T1 = &#32;and surrounds it with 2 brace pairs {{Nobold|(making the inner braces a part of the link but not the outer braces)}}
   |T2 = &#32;and surrounds it with two brackets which are not a part of the link
   |T2 = &#32;and surrounds it with 2 brace pairs {{Nobold|which are not a part of the link label}}
   |Tl = &#32;in teletype style and surrounds it with two brackets which are not a part of the link
   |Tl = &#32;with a monospace font and surrounds it with 2 brace pairs {{Nobold|which are excluded from the link label}}
   }}}}.
   }}.


|1      = 1
|1      = 1
Line 36: Line 42:
|3      = 3
|3      = 3
|3aliases = lang
|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>
|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-
Line 43: Line 49:
|4d    = +/-  to precede the template name with the namespace <code>Template:</code>
|4d    = +/-  to precede the template name with the namespace <code>Template:</code>


* '''<code>+</code>''' (plus sign)  to make <tt>Template:</tt> a part of the link,
* '''<code>+</code>''' (plus sign)  to make <code>Template:</code> a part of the link,
* '''<code>-</code>''' (minus sign) to precede <tt>Template:</tt> as plain text.
* '''<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).
The +/- parameter can as well be specified with parameter 2 or 3;<br />(when ''both'' signs are specified, "+" has precedence).
|4def  =
|4def  =
|4stat  = optional-
|4stat  = optional-
Line 51: Line 57:
|5      = incl
|5      = incl
|5aliases = i
|5aliases = i
|5d    = <code>i</code> or <code>incl</code> is a numeric value,
|5d    = <code>i</code> or <code>incl</code> is a one-digit formatting option:


* 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}} -->
Line 82: Line 88:


|10    = i18n
|10    = i18n
|10d    = another language than <tt><nowiki>{{int:lang}}</nowiki></tt> for namespace translation (when <code>case=i</code> or <code>case=n</code>)
|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}}
|10def  = {{int:lang}}
|10stat = optional-
|10stat = optional-


|11    = parm
|11    = parm
|11d    = to display templates parameters &ensp;(like {{T|Tlx}})<br>
|11d    = to display templates parameters &ensp;(like {{T|Tlx}})<br />
Usage e.g. <code>parm=template name</code> or <code>parm=1=template name</code><br>
Usage e.g. <code>parm=template name</code> or <code>parm=1=template name</code><br />
or &ensp;<code><nowiki>parm=&amp;#124;1=&amp;#124;2=&amp;#124;code=y</nowiki></code>" gives
or &ensp;<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>".
"<code><nowiki>&#124;1=&#124;2=&#124;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|<tt><big>Tle</big></tt>|i=6}}.
:{{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-
|11stat = optional-


Line 113: Line 119:
|mustbesubst  =
|mustbesubst  =
|i18n-method  = -
|i18n-method  = -
|i18n-desc    = The template does not generate any localizable text;<br>
|i18n-desc    = The template does not generate any localizable text;<br />
with + or - always the ''namespace'' in English: "{{ns:10}}" is displayed;<br>
with + or - always the ''namespace'' in English: "{{ns:10}}" is displayed;<br />
only in combination with <tt>case=i</tt> or <tt>case=n</tt> the namespace can be translated using the {{T2|i18n/namespace|LangSwitch}} construct (according to <tt>i18n</tt>).
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/T-doc-expansion}} <!-- subpage -->
Line 124: Line 130:
[[Category:Internal link templates]]
[[Category:Internal link templates]]
[[Category:Interwiki link templates]]
[[Category:Interwiki link templates]]
[[Category:Typing-aid templates]]
{{#ifeq:{{PAGENAME}}|T|[[Category:One-letter templates| ]]}}
{{#ifeq:{{PAGENAME}}|T|[[Category:One-letter templates| ]]}}
</includeonly>
</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.