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

From RimWorld Wiki
Jump to navigation Jump to search
(Fixed #switch, #lc)
(defName added)
Line 5: Line 5:
 
|dec = xs:decimal
 
|dec = xs:decimal
 
|decimal = xs:decimal
 
|decimal = xs:decimal
 +
|defname = [[defName]]
 
|double = xs:double
 
|double = xs:double
 
|float = xs:float
 
|float = xs:float

Revision as of 14:54, 12 April 2015

Documentation[view] [edit] [history] [purge]

Example documentation

Parameters

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

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


Accepted values

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