Difference between revisions of "User:Alistaire/Template:DefsStdFormatter/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Created)
 
 
(2 intermediate revisions by 2 users not shown)
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 19: Line 21:
 
| {{User:Alistaire/Template:DefsStdFormatter|thingDef}}
 
| {{User:Alistaire/Template:DefsStdFormatter|thingDef}}
 
|-
 
|-
| <pre>{{User:Alistaire/Template:DefsStdFormatter|ThingDefs|Defs}}</pre>
+
| <pre>{{User:Alistaire/Template:DefsStdFormatter|ThingDef|ThingDef}}</pre>
| {{User:Alistaire/Template:DefsStdFormatter|ThingDefs|Defs}}
+
| {{User:Alistaire/Template:DefsStdFormatter|ThingDef|ThingDef}}
 +
|-
 +
| <pre>{{User:Alistaire/Template:DefsStdFormatter|ThingDef||1}}</pre>
 +
| {{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