Template:T/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ #if: {{{style|}}} | <code> }}<nowiki>{{</nowiki><span style="padding: 0 0.1em;">{{ #if: {{{prefix|}}} | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: {{{1}}} | 0 | 1 }} | : || {{ #i...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{SPW|is newer|name=T}} | ||
;Description | |||
:A template link with a variable number of example parameters (0–20), which can be used to show example inputs. | |||
;Syntax | |||
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20|8=prefix=...}} | |||
;Sample code | |||
:<code><nowiki>{{t|welcome}}</nowiki></code> gives... | |||
:{{t|welcome}} | |||
:<code><nowiki>{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives... | |||
:{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}} | |||
:<code><nowiki>{{t|welcome|2=param1=Item1}}</nowiki></code> gives... | |||
:{{t|welcome|2=param1=Item1}} | |||
:<code><nowiki>{{t|welcome|prefix=subst}}</nowiki></code> gives... | |||
:{{t|welcome|prefix=subst}} | |||
:<code><nowiki>{{t|welcome|style=code}}</nowiki></code> gives... | |||
:{{t|welcome|style=code}} | |||
;See also | |||
* {{t|t2}} | |||
* {{t|s}}<includeonly> | |||
[[Category:General wiki templates]] | |||
[[de:Vorlage:T]] | |||
[[ja:テンプレート:T]] | |||
</includeonly><noinclude> | |||
[[Category:Template documentation]] | |||
[[ja:テンプレート:T/doc]] | |||
</noinclude> |
Latest revision as of 17:13, 22 October 2017
http://templates.wikia.com/wiki/Special:Filepath/Wiki-50px.png | This template was copied from Template:T on Wikia Templates. That wiki should periodically be checked for a new version of this template. |
- Description
- A template link with a variable number of example parameters (0–20), which can be used to show example inputs.
- Syntax
- {{t|parameter1|parameter2|parameter3|parameter4|...|parameter20|prefix=...}}
- Sample code
{{t|welcome}}
gives...- {{welcome}}
{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}}
gives...- {{welcome|Item1|Item2|Item3|Item4|Item5|...}}
{{t|welcome|2=param1=Item1}}
gives...- {{welcome|param1=Item1}}
{{t|welcome|prefix=subst}}
gives...- {{subst:welcome}}
{{t|welcome|style=code}}
gives...{{welcome}}
- See also