Difference between revisions of "User:Alistaire/Template:DefsStdFormatter"
Jump to navigation
Jump to search
(Created) |
(Added {{{3}}} for attributes) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Documentation}}</noinclude><includeonly>[[{{{2|{{{1|}}}}}}|<{{{1}}}>]]</includeonly> | + | <noinclude>{{Documentation}}</noinclude><includeonly>[[{{{2|{{{1|}}}}}}|{{#if:{{{3}}}|@{{{1}}}|<{{{1}}}>}}]]</includeonly> |
Revision as of 13:41, 12 April 2015
Example documentation
Parameters
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
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. |