Template:T/doc: Difference between revisions
Content added Content deleted
(Copied from w:c:templates:Template:T) |
imported>FrozenPlum m (Forgot categories (plus I need extra edits to test for 502s after disabling loops)) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
|||
<!-- Documentation here --> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:{{t|welcome}} |
|||
:<code><nowiki>{{ |
: <code><nowiki>{{T|DPL}}</nowiki></code> gives... |
||
⚫ | |||
:{{t|welcome|Item1|Item2|Item3|Item4|Item5|...}} |
|||
:<code><nowiki>{{ |
: <code><nowiki>{{T|Gamepedia Help Wiki:Placeholder|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> gives... |
||
:{{ |
: {{T|DPL|Item1|Item2|Item3|Item4|Item5|...}} |
||
:<code><nowiki>{{ |
: <code><nowiki>{{T|Gamepedia Help Wiki:Placeholder|param1{{=}}Item1}}</nowiki></code> gives... |
||
:{{ |
: {{T|DPL|param1{{=}}Item1}} |
||
:<code><nowiki>{{ |
: <code><nowiki>{{T|DPL|prefix=subst}}</nowiki></code> gives... |
||
:{{ |
: {{T|DPL|prefix=subst}} |
||
⚫ | |||
;See also |
|||
: {{ |
: {{T|DPL|style=code}} |
||
⚫ | |||
<includeonly> |
|||
<includeonly>[[Category:Internal link templates|{{PAGENAME}}]]</includeonly> |
|||
<!-- Template categories/interwikis here --> |
|||
[[Category:Templates]] |
|||
[[Category:Formatting templates]] |
|||
</includeonly> |
Latest revision as of 00:00, 2 April 2022
[purge]
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information- 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|DPL}}
gives...- {{DPL}}
{{T|Gamepedia Help Wiki:Placeholder|Item1|Item2|Item3|Item4|Item5|...}}
gives...- {{DPL|Item1|Item2|Item3|Item4|Item5|...}}
{{T|Gamepedia Help Wiki:Placeholder|param1{{=}}Item1}}
gives...- {{DPL|param1=Item1}}
{{T|DPL|prefix=subst}}
gives...- {{subst: DPL}}
{{T|DPL|style=code}}
gives...{{DPL}}