Difference between revisions of "User:Alistaire/Template:DefsStdContentSwitch"
Jump to navigation
Jump to search
(range -> info) |
(Removed xs from anyURI) |
||
(4 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 = | + | |anyuri = anyURI |
− | |bool = | + | |bool = boolean |
− | |boolean = | + | |boolean = boolean |
− | |dec = | + | |dec = decimal |
− | |decimal = | + | |decimal = decimal |
|defname = [[defName]] | |defname = [[defName]] | ||
− | |double = | + | |double = double |
− | |float = | + | |float = float |
− | |int = | + | |int = int |
− | |integer = | + | |integer = int |
− | |name = | + | |li = list item |
− | |normstr = | + | |name = Name |
− | |normstring = | + | |normstr = normalizedString |
− | |normalizedstring = | + | |normstring = normalizedString |
− | |rgb = | + | |normalizedstring = normalizedString |
− | |str = | + | |rgb = rgbColour |
− | |string = | + | |str = string |
− | |stringnorm = | + | |string = string |
− | |src = | + | |stringnorm = normalizedString |
− | |uri = | + | |src = 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|}}}| (default: {{{default}}})|}}{{#if:{{{info|}}}| ({{{info}}})|}}</includeonly> | + | -->|unknown datatype}}''{{#if:{{{default|}}}| (default: {{{default}}})|}}{{#if:{{{info|}}}| ({{{info}}})|}}</includeonly> |
Latest revision as of 14:21, 13 April 2015
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 |
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. |