Difference between revisions of "User:Alistaire/Template:DefsStdFormatter/doc"
Jump to navigation
Jump to search
(Added 3 example) |
|||
(One intermediate revision by the same user not shown) | |||
Line 21: | Line 21: | ||
| {{User:Alistaire/Template:DefsStdFormatter|thingDef}} | | {{User:Alistaire/Template:DefsStdFormatter|thingDef}} | ||
|- | |- | ||
− | | <pre>{{User:Alistaire/Template:DefsStdFormatter| | + | | <pre>{{User:Alistaire/Template:DefsStdFormatter|ThingDef|ThingDef}}</pre> |
− | | {{User:Alistaire/Template:DefsStdFormatter| | + | | {{User:Alistaire/Template:DefsStdFormatter|ThingDef|ThingDef}} |
|- | |- | ||
− | | <pre>{{User:Alistaire/Template:DefsStdFormatter| | + | | <pre>{{User:Alistaire/Template:DefsStdFormatter|ThingDef||1}}</pre> |
− | | {{User:Alistaire/Template:DefsStdFormatter| | + | | {{User:Alistaire/Template:DefsStdFormatter|ThingDef||1}} |
|- | |- | ||
|} | |} |
Latest revision as of 23:49, 4 April 2023
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 |