|
|
Line 1: |
Line 1: |
| {{ #if: {{{style|}}} | <code> }}<nowiki>{{</nowiki><span style="padding: 0 0.1em;">{{ #if: {{{prefix|}}} | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: {{{1}}} | 0 | 1 }} | : || {{ #if: {{NAMESPACE:{{{1}}}}} || {{ns:10}} }} }}:{{{1}}}|{{ #ifeq: {{ #sub: {{{1}}} | 0 | 1 }} | : | : }}{{ #ifeq: {{NAMESPACE:{{{1}}}}} | {{ns:10}} | {{PAGENAME:{{{1}}}}} | {{{1}}} }}]]</span>{{ #if: {{{2|}}} | | {{SPW|is newer|name=T}} |
| | |<var style="padding: 0 0.2em; color: gray;">{{{2}}}</var> }}{{ #if: {{{3|}}}
| | ;Description |
| | |<var style="padding: 0 0.2em; color: gray;">{{{3}}}</var> }}{{ #if: {{{4|}}}
| | :A template link with a variable number of example parameters (0–20), which can be used to show example inputs. |
| | |<var style="padding: 0 0.2em; color: gray;">{{{4}}}</var> }}{{ #if: {{{5|}}}
| | ;Syntax |
| | |<var style="padding: 0 0.2em; color: gray;">{{{5}}}</var> }}{{ #if: {{{6|}}}
| | :{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20|8=prefix=...}} |
| | |<var style="padding: 0 0.2em; color: gray;">{{{6}}}</var> }}{{ #if: {{{7|}}}
| | ;Sample code |
| | |<var style="padding: 0 0.2em; color: gray;">{{{7}}}</var> }}{{ #if: {{{8|}}}
| | :<code><nowiki>{{t|welcome}}</nowiki></code> gives... |
| | |<var style="padding: 0 0.2em; color: gray;">{{{8}}}</var> }}{{ #if: {{{9|}}}
| | :{{t|welcome}} |
| | |<var style="padding: 0 0.2em; color: gray;">{{{9}}}</var> }}{{ #if: {{{10|}}}
| | :<code><nowiki>{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives... |
| | |<var style="padding: 0 0.2em; color: gray;">{{{10}}}</var> }}{{ #if: {{{11|}}}
| | :{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}} |
| | |<var style="padding: 0 0.2em; color: gray;">{{{11}}}</var> }}{{ #if: {{{12|}}}
| | :<code><nowiki>{{t|welcome|2=param1=Item1}}</nowiki></code> gives... |
| | |<var style="padding: 0 0.2em; color: gray;">{{{12}}}</var> }}{{ #if: {{{13|}}}
| | :{{t|welcome|2=param1=Item1}} |
| | |<var style="padding: 0 0.2em; color: gray;">{{{13}}}</var> }}{{ #if: {{{14|}}}
| | :<code><nowiki>{{t|welcome|prefix=subst}}</nowiki></code> gives... |
| | |<var style="padding: 0 0.2em; color: gray;">{{{14}}}</var> }}{{ #if: {{{15|}}}
| | :{{t|welcome|prefix=subst}} |
| | |<var style="padding: 0 0.2em; color: gray;">{{{15}}}</var> }}{{ #if: {{{16|}}}
| | :<code><nowiki>{{t|welcome|style=code}}</nowiki></code> gives... |
| | |<var style="padding: 0 0.2em; color: gray;">{{{16}}}</var> }}{{ #if: {{{17|}}}
| | :{{t|welcome|style=code}} |
| | |<var style="padding: 0 0.2em; color: gray;">{{{17}}}</var> }}{{ #if: {{{18|}}}
| | ;See also |
| | |<var style="padding: 0 0.2em; color: gray;">{{{18}}}</var> }}{{ #if: {{{19|}}}
| | * {{t|t2}} |
| | |<var style="padding: 0 0.2em; color: gray;">{{{19}}}</var> }}{{ #if: {{{20|}}}
| | * {{t|s}}<includeonly> |
| | |<var style="padding: 0 0.2em; color: gray;">{{{20}}}</var> }}{{ #if: {{{21|}}}
| | [[Category:General wiki templates]] |
| | |<var style="padding: 0 0.2em; color: gray;">{{{21}}}</var> }}<nowiki>}}</nowiki>{{ #if: {{{style|}}} | </code> }}<noinclude>{{documentation}}</noinclude>
| | [[de:Vorlage:T]] |
| | [[ja:テンプレート:T]] |
| | </includeonly><noinclude> |
| | [[Category:Template documentation]] |
| | [[ja:テンプレート:T/doc]] |
| | </noinclude> |