Difference between revisions of "User:Alistaire/Template:DefsStdFormatter/doc"
Jump to navigation
Jump to search
(Created) |
(Added 3 example) |
||
Line 9: | Line 9: | ||
|- | |- | ||
| 2 || ''(optional):'' Overwrites the linked to tag. | | 2 || ''(optional):'' Overwrites the linked to tag. | ||
+ | |- | ||
+ | | 3 || ''(optional):'' If this exists, it will format to @{{{1}}} instead of <{{{1}}}>. | ||
|}<br/><br/> | |}<br/><br/> | ||
Line 21: | Line 23: | ||
| <pre>{{User:Alistaire/Template:DefsStdFormatter|ThingDefs|Defs}}</pre> | | <pre>{{User:Alistaire/Template:DefsStdFormatter|ThingDefs|Defs}}</pre> | ||
| {{User:Alistaire/Template:DefsStdFormatter|ThingDefs|Defs}} | | {{User:Alistaire/Template:DefsStdFormatter|ThingDefs|Defs}} | ||
+ | |- | ||
+ | | <pre>{{User:Alistaire/Template:DefsStdFormatter|ParentName||1}}</pre> | ||
+ | | {{User:Alistaire/Template:DefsStdFormatter|ParentName||1}} | ||
|- | |- | ||
|} | |} |
Revision as of 13:42, 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|ThingDefs|Defs}} |
<>ThingDefs |
{{User:Alistaire/Template:DefsStdFormatter|ParentName||1}} |
@ParentName |