Difference between revisions of "User:Alistaire/Template:DefsStdFormatter/doc"
Jump to navigation
Jump to search
(Added 3 example) |
|||
Line 22: | Line 22: | ||
|- | |- | ||
| <pre>{{User:Alistaire/Template:DefsStdFormatter|ThingDefs|Defs}}</pre> | | <pre>{{User:Alistaire/Template:DefsStdFormatter|ThingDefs|Defs}}</pre> | ||
− | | {{User:Alistaire/Template:DefsStdFormatter|ThingDefs| | + | | {{User:Alistaire/Template:DefsStdFormatter|ThingDefs|ThingDefs}} |
|- | |- | ||
| <pre>{{User:Alistaire/Template:DefsStdFormatter|ParentName||1}}</pre> | | <pre>{{User:Alistaire/Template:DefsStdFormatter|ParentName||1}}</pre> |
Revision as of 23:48, 4 April 2023
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|ThingDefs|Defs}} |
<>ThingDefs |
{{User:Alistaire/Template:DefsStdFormatter|ParentName||1}} |
@ParentName |