Difference between revisions of "User:Alistaire/Template:DefsStdContentSwitch"
Jump to navigation
Jump to search
(Added list item) |
(Datatype names are now in italics) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Documentation}}</noinclude><includeonly>{{#switch:{{lc:{{{1|}}}}} | + | <noinclude>{{Documentation}}</noinclude><includeonly>''{{#switch:{{lc:{{{1|}}}}} |
|anyuri = xs:anyURI | |anyuri = xs:anyURI | ||
|bool = xs:boolean | |bool = xs:boolean | ||
Line 24: | Line 24: | ||
|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|}}}| (default: {{{default}}})|}}{{#if:{{{info|}}}| ({{{info}}})|}}</includeonly> | + | -->|unknown datatype}}''{{#if:{{{default|}}}| (default: {{{default}}})|}}{{#if:{{{info|}}}| ({{{info}}})|}}</includeonly> |
Revision as of 15:25, 12 April 2015
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) (0-100) |
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 | list item |
name | xs:Name |
normstr normstring normalizedstring |
xs:normalizedString |
rgb | rgb |
str string |
xs:string |
src uri |
xs:anyURI |
vector2 | vector2 |
vector3 | vector3 |
The above documentation is transcluded from User:Alistaire/Template:DefsStdContentSwitch/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this page. |