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:T0: Difference between revisions

Template page
m +parm
m Test
Line 1: Line 1:
{{#ifeq:{{lc:{{{code}}}}}|tt|<code>}}<!--
{{#ifeq:{{lc:{{{code}}}}}|tt|<code>}}<!--
-->{{#switch:-|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}={{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}=<!--
-->{{#switch:-|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}={{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}=<!--
-->|{{#ifeq:{{{case|}}}|l|{{lcfirst:{{ns:10}}}}|{{ns:10}}}}:}}}}<!--                             namespace (not linked)
-->{{#switch:{{{case}}}|n={{i18n/namespace|t|link=no}}|i={{i18n/namespace|t}}|l={{lcfirst:{{ns:10}}}}|={{ns:10}}}}:}}}}<!-- ns (nolink)
-->{{#switch:{{{incl|{{{i|}}}}}}|0|4=&#123;&#123;|2|6|8|9|=|1|5=&#123;}}<!--      default=9
-->{{#switch:{{{incl|{{{i|}}}}}}|0|4=&#123;&#123;|2|6|8|9|=|1|5=&#123;}}<!--      default=9
-->{{#ifeq:{{{link}}}|no|&shy;{{#switch:{{{2|}}}|+|-|={{PAGENAME:{{{1<noinclude>|Example</noinclude>}}}}}|{{{2}}}}}<!-- nolink option
-->{{#ifeq:{{{link}}}|no|&shy;{{#switch:{{{2|}}}|+|-|={{PAGENAME:{{{1<noinclude>|Example</noinclude>}}}}}|{{{2}}}}}<!--     opt nolink  
-->|[[:{{#switch:{{{3}}}|+|-={{#if:{{{lang|}}}|{{{lang}}}:}}|{{#if:{{{3|{{{lang|}}}}}}|{{{3|{{{lang}}}}}}:}}}}<!--
-->|[[:{{#switch:{{{3}}}|+|-={{#if:{{{lang|}}}|{{{lang}}}:}}|{{#if:{{{3|{{{lang|}}}}}}|{{{3|{{{lang}}}}}}:}}}}<!--
  -->{{ns:10}}:{{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|T0}}|<!--
  -->{{ns:10}}:{{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|T0}}|<!--
-->{{#switch:{{{incl|{{{i|}}}}}}|0|4|8|9|=|2|6=&#123;&#123;|1|5=&#123;}}<!--
-->{{#switch:{{{incl|{{{i|}}}}}}|0|4|8|9|=|2|6=&#123;&#123;|1|5=&#123;}}<!--
-->{{#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}}}|{{{5}}}={{ns:10}}:}}<!--                                 namespace ( linked)
-->{{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}=<!--
-->{{#switch:{{{case}}}|i|n={{i18n/namespace|t|link=no}}|l={{lcfirst:{{ns:10}}}}|={{ns:10}}}}:}}<!--                       ns (linked)
-->{{#switch:{{{2}}}|+|-={{#if:{{{1|}}}|{{ucfirst:{{PAGENAME:{{{1}}}}}}}|T0}}{{{parm|}}}<!--
-->{{#switch:{{{2}}}|+|-={{#if:{{{1|}}}|{{ucfirst:{{PAGENAME:{{{1}}}}}}}|T0}}{{{parm|}}}<!--
  -->|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{ucfirst:{{PAGENAME:{{{1}}}}}}}|T0}}}}}}<!--
  -->|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{ucfirst:{{PAGENAME:{{{1}}}}}}}|T0}}}}}}<!--

Revision as of 21:32, 23 May 2019

T0

Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:T/doc.


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

ParameterDescriptionDefaultStatus
1template name (any namespace is ignored)T0optional
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+/- to precede the template name with the namespace Template:
  • + (plus sign) to make Template: a part of the link,
  • - (minus sign) to precede Template: as plain text.
The +/- parameter can as well be specified with parameter 2 or 3;
(when both signs are specified, "+" has precedence).
emptyoptional
incl
i
i or incl is a one-digit formatting option:
  • 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
  • 3: like i=2, with monospace font
  • 4: like i=0 but with the name in teletype style
  • 5: like i=1 but with the name in teletype style
  • 6: like i=2 but with the name in teletype style
  • 8: without surrounding brackets
  • 9: like i=8 but with the name in teletype style large (font-size:128%)
8optional
codeany value, for a surrounding <code> tag  (like {{Tl2}}).
With code=tt also the surrounding brackets are in teletype style.
emptyoptional
linkreturns plain text instead of a link when set to link=noemptyoptional
casefor formatting of the namespace prefix:
  • case=l lowercase display "template" instead of "Template"
  • case=i internationalized display, in general a link
  • case=n internationalized display, without linking it
emptyoptional
i18nanother language than {{int:lang}} for namespace translation (when case=i or case=n)enoptional
parmto display templates parameters  (like {{Tlx}})

Usage e.g. parm=template name or parm=1=template name
or  parm=&#124;1=&#124;2=&#124;code=y" gives "|1=|2=|code=y".

For a better appearing and easier to format explanatory, use the meta template {{Tle}}.
emptyoptional
fullexpanded display: Template:{{Example}}  (like {{Lts}})
request this expansion with either full=5 or 5=full.
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;
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}}


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