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

From RimWorld Wiki
Jump to navigation Jump to search
(→‎Accepted values: Changed to template calls instead of plain text)
 
Line 41: Line 41:
 
|dec<br/>decimal || {{User:Alistaire/Template:DefsStdContentSwitch|dec}}
 
|dec<br/>decimal || {{User:Alistaire/Template:DefsStdContentSwitch|dec}}
 
|-
 
|-
|defName || {{User:Alistaire/Template:DefsStdContentSwitch|defName}}
+
|defName || <nowiki>{{User:Alistaire/Template:DefsStdContentSwitch|defName}}</nowiki>
 
|-
 
|-
 
|double || {{User:Alistaire/Template:DefsStdContentSwitch|double}}
 
|double || {{User:Alistaire/Template:DefsStdContentSwitch|double}}

Latest revision as of 23:51, 4 April 2023

Example documentation

Parameters[edit]

Parameter Explanation
1 (required): The datatype, check "Accepted values".
default (optional): The default value for this datatype in this element, (default: {{{default}}}).
info (optional): Extra info for this datatype in this element, ({{{info}}}).



Examples[edit]

Input Output
{{User:Alistaire/Template:DefsStdContentSwitch|string}}
string
{{User:Alistaire/Template:DefsStdContentSwitch|bool|default=true}}
boolean (default: true)
{{User:Alistaire/Template:DefsStdContentSwitch|integer|default=1|info=0-100}}
int (default: 1) (0-100)



Accepted values[edit]

Value Output
anyuri anyURI
bool
boolean
boolean
dec
decimal
decimal
defName {{User:Alistaire/Template:DefsStdContentSwitch|defName}}
double double
float float
int
integer
int
li list item
name Name
normstr
normstring
normalizedstring
normalizedString
rgb rgbColour
str
string
string
src
uri
anyURI
vector2 vector2
vector3 vector3