Difference between revisions of "User:Alistaire/Template:DefsStdContentSwitch/doc"
Jump to navigation
Jump to search
(→Accepted values: Added list item) |
(→Accepted values: Changed to template calls instead of plain text) |
||
Line 35: | Line 35: | ||
! Value || Output | ! Value || Output | ||
|- | |- | ||
− | |anyuri || | + | |anyuri || {{User:Alistaire/Template:DefsStdContentSwitch|anyuri}} |
|- | |- | ||
− | |bool<br/>boolean || | + | |bool<br/>boolean || {{User:Alistaire/Template:DefsStdContentSwitch|bool}} |
|- | |- | ||
− | |dec<br/>decimal || | + | |dec<br/>decimal || {{User:Alistaire/Template:DefsStdContentSwitch|dec}} |
|- | |- | ||
− | |defName || | + | |defName || {{User:Alistaire/Template:DefsStdContentSwitch|defName}} |
|- | |- | ||
− | |double || | + | |double || {{User:Alistaire/Template:DefsStdContentSwitch|double}} |
|- | |- | ||
− | |float || | + | |float || {{User:Alistaire/Template:DefsStdContentSwitch|float}} |
|- | |- | ||
− | |int || | + | |int<br/>integer || {{User:Alistaire/Template:DefsStdContentSwitch|int}} |
|- | |- | ||
− | | | + | |li || {{User:Alistaire/Template:DefsStdContentSwitch|li}} |
|- | |- | ||
− | | | + | |name || {{User:Alistaire/Template:DefsStdContentSwitch|name}} |
|- | |- | ||
− | | | + | |normstr<br/>normstring<br/>normalizedstring || {{User:Alistaire/Template:DefsStdContentSwitch|normstr}} |
|- | |- | ||
− | | | + | |rgb || {{User:Alistaire/Template:DefsStdContentSwitch|rgb}} |
|- | |- | ||
− | | | + | |str<br/>string || {{User:Alistaire/Template:DefsStdContentSwitch|str}} |
|- | |- | ||
− | | | + | |src<br/>uri || {{User:Alistaire/Template:DefsStdContentSwitch|uri}} |
|- | |- | ||
− | | | + | |vector2 || {{User:Alistaire/Template:DefsStdContentSwitch|vector2}} |
|- | |- | ||
− | | | + | |vector3 || {{User:Alistaire/Template:DefsStdContentSwitch|vector3}} |
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|} | |} |
Revision as of 14:20, 13 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}} |
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
Value | Output |
---|---|
anyuri | anyURI |
bool boolean |
boolean |
dec decimal |
decimal |
defName | 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 |