Difference between revisions of "User:Alistaire/Template:DefsStdFormatter"
Jump to navigation
Jump to search
(Created) |
(<tag> to <>tag) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Documentation}}</noinclude><includeonly>[[{{{2|{{{1|}}}}}}|<{{{1}}} | + | <noinclude>{{Documentation}}</noinclude><includeonly>[[{{#if:{{{2|}}}|{{{2}}}|{{{1|}}}}}|{{#if:{{{3|}}}|@{{{1}}}|<>{{{1}}}}}]]</includeonly> |
Latest revision as of 14:15, 13 April 2015
Example documentation
Parameters[edit]
Parameter | Explanation |
---|---|
1 | (required): What tag name to display and link to. |
2 | (optional): Overwrites the linked to tag. |
3 | (optional): If this exists, it will format to @{{{1}}} instead of <{{{1}}}>. |
Examples[edit]
Input | Output |
---|---|
{{User:Alistaire/Template:DefsStdFormatter|thingDef}} |
<>thingDef |
{{User:Alistaire/Template:DefsStdFormatter|ThingDef|ThingDef}} |
<>ThingDef |
{{User:Alistaire/Template:DefsStdFormatter|ThingDef||1}} |
@ThingDef |
The above documentation is transcluded from User:Alistaire/Template:DefsStdFormatter/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this page. |