Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Wikimedia Commons
Search

Template:T1

From Wikimedia Commons, the free media repository

{{T1}}

Template documentation[ view ·edit ·history ·purge ]
This documentation istranscluded fromTemplate:T/doc.


The{{T}} template creates a formatted link to aTemplate.
The T1 template creates a formatted link to a template and surrounds it with 2 brace pairs(making the inner braces a part of the link but not the outer braces).

Usage

{{T1 |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1template name (any namespace is ignored)T1optional
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 withlang=
emptyoptional
4+/- to precede the template name with the namespaceTemplate:
  • + (plus sign) to makeTemplate: a part of the link,
  • - (minus sign) to precedeTemplate: as plain text.
The +/- parameter can as well be specified with parameter 2 or 3;
(whenboth signs are specified, "+" has precedence).
emptyoptional
incl
i
i orincl 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: likei=2, with monospace font
  • 4: likei=0 but with the name in teletype style
  • 5: likei=1 but with the name in teletype style
  • 6: likei=2 but with the name in teletype style
  • 8: without surrounding brackets
  • 9: likei=8 but with the name in teletype stylelarge (font-size:128%)
1optional
codeany value, for a surrounding<code> tag  (like{{Tl2}}).
Withcode=tt also the surrounding brackets are in teletype style.
emptyoptional
linkreturns plain text instead of a link when set tolink=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 (whencase=i orcase=n)enoptional
parmto display templates parameters  (like{{Tlx}})

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

For a better appearing andeasier to format explanatory, use the meta template{{Tle}}.
emptyoptional
fullexpanded display:Template:{{Example}}  (like{{Lts}})
request this expansion with eitherfull=5 or5=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 thenamespace in English: "Template" is displayed;
only in combination withcase=i orcase=n the namespace can be translated using the {{LangSwitch}} construct (according toi18n).

[edit subpage]

Note: The templates T, T0, T1, T2, Tl, T9 use the samemain template with the only difference of the default value for the parameterincl=.

Templateiappearance
T2{{T}}
T08T0
T11{{T1}}
T20{{T2}}
Tl3{{Tl}}
T99T9
This means thateach of them can be converted intoeach one of the others by just replacing that parameter:
T{{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}}{{T1}}WWWWWWWWWWWW
T0{{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|8}}}}}}|code={{{code|}}}}}T1
T1{{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|1}}}}}}|code={{{code|}}}}}{{T1}}
T2{{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|0}}}}}}|code={{{code|}}}}}{{T1}}
Tl{{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|3}}}}}}|code={{{code|}}}}}}}{{T1}}
T9{{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|9}}}}}}|code={{{code|}}}}}T1


Examples

withcode=y

UsesLua:
The following examples are Luasupportet:

The parametercase (with the other parameters supporting it) intends to be rarely used, but whenin a textual environment a special appearance is desired, with the namespace prefix in different formats, the following concealed tables shows the possibilities. All combinations are possible but not every one is useful.

Table: different displays for {{T1}} with thenamespace option0
{{ T1example }}0this is thestandard{{Example}}
{{ T1example- }}Template:{{Example}}
{{ T1example-case = l }}template:{{Example}}
{{ T1example-case = i }}LangSwitch Error: no default:{{Example}}
{{ T1example-case = n }}template:{{Example}}
{{ T1Example+ }}Template:{{Example}}
{{ T1example+case = l }}template:{{Example}}
{{ T1example+case = i }}template:{{Example}}
{{ T1example+case = n }}template:{{Example}}
{{ T1Examplelink = n }}{{Example}}
{{ T1Example-link = n }}Template:{{Example}}
{{ T1example-link = ncase = l }}template:{{Example}}
{{ T1example-link = ncase = i }}LangSwitch Error: no default:{{Example}}
{{ T1example-link = ncase = n }}template:{{Example}}
{{ T1example+link = n }}Template:{{Example}}
{{ T1example+link = ncase = l }}template:{{Example}}
{{ T1example+link = ncase = i }}LangSwitch Error: no default:{{Example}}
{{ T1example+link = ncase = n }}template:{{Example}}
Large table with displays for {{T1}} with thenamespace option0
linknscasei=i=0i=1i=2i=3i=4i=5i=6i=8i=9
000T1{{T1}}{{T1}}{{T1}}{{T1}}{{T1}}{{T1}}{{T1}}T1T1
0+0Template:T1Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:T1Template:T1
0+ltemplate:T1template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:T1template:T1
0+itemplate:T1template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:T1template:T1
0+ntemplate:T1template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:T1template:T1
0-0Template:T1Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:T1Template:T1
0-ltemplate:T1template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:T1template:T1
0-iLangSwitch Error: no default:T1LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:T1LangSwitch Error: no default:T1
0-ntemplate:T1template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:T1template:T1
no00T1{{T1}}{{T1}}{{T1}}{{T1}}{{T1}}{{T1}}{{T1}}T1T1
no+0Template:T1Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:T1Template:T1
no+ltemplate:T1template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:T1template:T1
no+iLangSwitch Error: no default:T1LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:T1LangSwitch Error: no default:T1
no+ntemplate:T1template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:T1template:T1
no-0Template:T1Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:{{T1}}Template:T1Template:T1
no-ltemplate:T1template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:T1template:T1
no-iLangSwitch Error: no default:T1LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:{{T1}}LangSwitch Error: no default:T1LangSwitch Error: no default:T1
no-ntemplate:T1template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:{{T1}}template:T1template:T1

[edit subpage]

Template links

List of templates using{{T/main}}
CodeResultNoteslock

{{T|example}}

{{Example}}makes brackets part of the link

{{T0|example}}

Examplejust link, without the brackets

{{T1|example}}

{{Example}}inner brackets are part of the link

{{T2|example}}

{{Example}}brackets are not a part of the link

{{Tl|example}}

{{Example}}makes brackets around the link

{{Tlr|User:Example}}

{{User:Example}}like{{tl}} but for any namespace

{{Tls|example}}

{{subst:example}}no parameters, adds "subst:"
Templates showing parameters0Meta template {{Tle}} is easiest to parametrize.

{{Tle|T=F|p1=1|v1|p2=2|v2|p3=3|v3}}

{{ F |1 = v1 |2 = v2 |3 = v3 }}describes template parameters by names and values

{{Tlx|example|1|2|3|4|5||7|8|9}}

{{example|1|2|3|4|5|7|8|...}}up to 8 parameters

{{Tlf|example|1|2|3|...up to 8}}

{{example|1|2|3|...up to 8}}up to 8 parameters, no link

{{Tlc|example|1|2|3|4|||7|up to 8|9 is ignored.}}

{{example|1|2|3|4|||7|up to 8}}up to 8 parameters, no link,<code> style

{{Tld|example|1|2||3||}}

{{example|1||2|3||}}up to 8 parameters,<code> style[clarification needed]

{{Tlsu|User:Example}}

{{subst:User:Example}}like{{Tls}}, but supporting parameters
Alternative forms0These ignore empty parameters.

{{Tlp|example|1|2|3|4|5||7|8|9 is ignored.}}

{{example|1|2|3|4|5|7|8}}up to 8 parameters; ignores empty parms

{{Tl2|example|p1|p2}}

{{example|p1|p2}}up to 2 parameters,<code> style

{{Tlsp|example|1|2|3|4|5|6|7|8|9}}

{{subst:example|1|2|3|4|5|6|7|8|...}}up to 8 parameters, adds linked "subst:"

{{Tlsx|example|1|2|3|4|5|6 and above are ignored.|7}}

{{subst:example|1|2|3|4|5|...}}up to 5 parameters, adds linked "subst:",<code> style

General-purpose formatting

Comparison of template-linking templates according to the styles of generated text and link produced
Text style ↓{{tlg}} options[note 1]
to achieve text style
Link style
LinkedUnlinkedLinked with substUnlinked with substLinked including braces
{{tlg}} options[note 1]
to achieve link style
N/ADEFAULTnolink=yessubst=yesnolink=yes|subst=yesbraceinside=yes
normalDEFAULTN/A
codecode=yes
N/A
monospacemono=yes[note 4]N/A
N/A
plaincodeplaincode=yes[note 5]
kbd[clarification needed]kbd=yes[note 6]
  1. abc{{tlg}} is the most general template, allowing any combination of text style and/or link style options.
  2. abcdePrevents wrapping of text by placing it inside<spanclass="nowrap">...</span> tags.
  3. abcAllows links to templates in any namespace.
  4. abcdDisplays monospaced font using<spanstyle="font-family: monospace;">...</span>.
  5. {{tlg|plaincode=yes}} uses<codestyle="border: none; background-color: transparent;">...</code>.
  6. {{tlg|kbd=yes}} uses<kbd>...</kbd>.


Retrieved from "https://commons.wikimedia.org/w/index.php?title=Template:T1&oldid=1098134500"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp