Template:T/doc: Difference between revisions

Jump to navigation Jump to search
1,243 bytes removed ,  22 October 2017
no edit summary
(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:
{{ #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}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{2}}}</var> }}{{ #if: {{{3|}}}
;Description
  | &#124;<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.
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{4}}}</var> }}{{ #if: {{{5|}}}
;Syntax
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{5}}}</var> }}{{ #if: {{{6|}}}
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20|8=prefix=...}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{6}}}</var> }}{{ #if: {{{7|}}}
;Sample code
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{7}}}</var> }}{{ #if: {{{8|}}}
:<code><nowiki>{{t|welcome}}</nowiki></code> gives...
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{8}}}</var> }}{{ #if: {{{9|}}}
:{{t|welcome}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{9}}}</var> }}{{ #if: {{{10|}}}
:<code><nowiki>{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives...
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{10}}}</var> }}{{ #if: {{{11|}}}
:{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{11}}}</var> }}{{ #if: {{{12|}}}
:<code><nowiki>{{t|welcome|2=param1=Item1}}</nowiki></code> gives...
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{12}}}</var> }}{{ #if: {{{13|}}}
:{{t|welcome|2=param1=Item1}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{13}}}</var> }}{{ #if: {{{14|}}}
:<code><nowiki>{{t|welcome|prefix=subst}}</nowiki></code> gives...
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{14}}}</var> }}{{ #if: {{{15|}}}
:{{t|welcome|prefix=subst}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{15}}}</var> }}{{ #if: {{{16|}}}
:<code><nowiki>{{t|welcome|style=code}}</nowiki></code> gives...
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{16}}}</var> }}{{ #if: {{{17|}}}
:{{t|welcome|style=code}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{17}}}</var> }}{{ #if: {{{18|}}}
;See also
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{18}}}</var> }}{{ #if: {{{19|}}}
* {{t|t2}}
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{19}}}</var> }}{{ #if: {{{20|}}}
* {{t|s}}<includeonly>
  | &#124;<var style="padding: 0 0.2em; color: gray;">{{{20}}}</var> }}{{ #if: {{{21|}}}
[[Category:General wiki templates]]
  | &#124;<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>

Navigation menu