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

From RimWorld Wiki
Jump to navigation Jump to search
(Added list item)
(Removed xs from anyURI)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Documentation}}</noinclude><includeonly>{{#switch:{{lc:{{{1|}}}}}
+
<noinclude>{{Documentation}}</noinclude><includeonly>''{{#switch:{{lc:{{{1|}}}}}
|anyuri = xs:anyURI
+
|anyuri = anyURI
|bool = xs:boolean
+
|bool = boolean
|boolean = xs:boolean
+
|boolean = boolean
|dec = xs:decimal
+
|dec = decimal
|decimal = xs:decimal
+
|decimal = decimal
 
|defname = [[defName]]
 
|defname = [[defName]]
|double = xs:double
+
|double = double
|float = xs:float
+
|float = float
|int = xs:int
+
|int = int
|integer = xs:integer
+
|integer = int
 
|li = list item
 
|li = list item
|name = xs:Name
+
|name = Name
|normstr = xs:normalizedString
+
|normstr = normalizedString
|normstring = xs:normalizedString
+
|normstring = normalizedString
|normalizedstring = xs:normalizedString
+
|normalizedstring = normalizedString
|rgb = rgb
+
|rgb = rgbColour
|str = xs:string
+
|str = string
|string = xs:string
+
|string = string
|stringnorm = xs:normalizedString
+
|stringnorm = normalizedString
|src = xs:anyURI
+
|src = anyURI
|uri = xs:anyURI
+
|uri = anyURI
 
|vector2 = vector2
 
|vector2 = vector2
 
|vector3 = vector3<!--
 
|vector3 = vector3<!--
 
MORE DATATYPES REQUIRED, ADD WHEN NECESSARY AND INCLUDE LINKS
 
MORE DATATYPES REQUIRED, ADD WHEN NECESSARY AND INCLUDE LINKS
-->|unknown datatype}}{{#if:{{{default|}}}|&nbsp;(default: {{{default}}})|}}{{#if:{{{info|}}}|&nbsp;({{{info}}})|}}</includeonly>
+
-->|unknown datatype}}''{{#if:{{{default|}}}|&nbsp;(default: {{{default}}})|}}{{#if:{{{info|}}}|&nbsp;({{{info}}})|}}</includeonly>

Latest revision as of 14:21, 13 April 2015

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

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