Template:T0: Difference between revisions
More actions
m Reverted edits by 79.77.114.26 (talk) to last revision by Sarang |
m namespace |
||
| Line 1: | Line 1: | ||
{{#ifeq:{{lc:{{{code}}}}}|tt|<code>}}<!-- | {{#ifeq:{{lc:{{{code}}}}}|tt|<code>}}<!-- | ||
-->{{#switch:{{{incl|{{{i|}}}}}}|0|4={{|2|6|8|9|=|1|5={}}<!-- | -->{{#switch:-|{{{2}}}|{{{3}}}|{{{4}}}={{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}=|{{ns:10}}:}}}}<!-- namespace (not linked) | ||
-->[[:{{#if:{{{3|{{{lang|}}}}}}|{{{3|{{{lang}}}}}}:}}{{ns:10}}:{{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|T0}}|<!-- | -->{{#switch:{{{incl|{{{i|}}}}}}|0|4={{|2|6|8|9|=|1|5={}}<!-- default=9 | ||
-->[[:{{#switch:{{{3}}}|+|-={{#if:{{{lang|}}}|{{{lang}}}:}}|{{#if:{{{3|{{{lang|}}}}}}|{{{3|{{{lang}}}}}}:}}}}<!-- | |||
-->{{ns:10}}:{{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|T0}}|<!-- | |||
-->{{#switch:{{{incl|{{{i|}}}}}}|0|4|8|9|=|2|6={{|1|5={}}<!-- | -->{{#switch:{{{incl|{{{i|}}}}}}|0|4|8|9|=|2|6={{|1|5={}}<!-- | ||
-->{{#if:{{{code|}}}|<code>}}{{#switch:{{{incl|{{{i|}}}}}}|4|5|6|9=<tt>}}<!-- | -->{{#if:{{{code|}}}|<code>}}{{#switch:{{{incl|{{{i|}}}}}}|4|5|6|9=<tt>}}<!-- | ||
-->{{# | -->{{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}={{ns:10}}:}}<!-- namespace ( linked) | ||
-->{{#switch:{{{2}}}|+|-={{#if:{{{1|}}}|{{ucfirst:{{PAGENAME:{{{1}}}}}}}|T0}}{{{parm|}}}<!-- | |||
-->|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{ucfirst:{{PAGENAME:{{{1}}}}}}}|T0}}}}}}<!-- | |||
-->{{#switch:{{{incl|{{{i|}}}}}}|4|5|6|9=</tt>}}{{#if:{{{code|}}}|</code>}}<!-- | -->{{#switch:{{{incl|{{{i|}}}}}}|4|5|6|9=</tt>}}{{#if:{{{code|}}}|</code>}}<!-- | ||
-->{{#switch:{{{incl|{{{i|}}}}}}|0|4|8|9|=|2|6=}}|1|5=}}}<!-- | -->{{#switch:{{{incl|{{{i|}}}}}}|0|4|8|9|=|2|6=}}|1|5=}}}<!-- | ||
Revision as of 08:05, 9 January 2018
The {{T}} template creates a formatted link to a Template.
The T0 template creates a formatted link to a template without surrounding braces.
Usage
{{T0 |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | template name (any namespace is ignored) | T0 | optional | |
2 | display name (displayed as-it-is) | parameter 1 | optional | |
3lang | interwiki language code (ISO 639), if the template is in another Wikipedia can also be specified with lang= | empty | optional | |
4 | +/- to precede the template name with the namespace Template:
(when both signs are specified, "+" has precedence). | empty | optional | |
incli | i or incl is a one-digit formatting option:
| 8 | optional | |
code | any value, for a surrounding <code> tag (like {{Tl2}}).With code=tt also the surrounding brackets are in teletype style. | empty | optional | |
link | returns plain text instead of a link when set to link=no | empty | optional | |
case | for formatting of the namespace prefix:
| empty | optional | |
i18n | another language than {{int:lang}} for namespace translation (when case=i or case=n) | en | optional | |
parm | to display templates parameters (like {{Tlx}}) Usage e.g.
| empty | optional | |
full | expanded display: Template:{{Example}} (like {{Lts}}) request this expansion with either full=5 or 5=full. | empty | optional | |
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;
with + or - always the namespace in English: "Template" is displayed;
only in combination with case=i or case=n the namespace can be translated using the {{LangSwitch}} construct (according to i18n).
{{Commons:Link templates/T-doc-expansion}}
{{Commons:Link templates/Template links}}