ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Template:Values: Difference between revisions
Jump to navigation
Jump to search
New page: <includeonly>{{#switch: {{lc:{{{1}}}}} |signed integer |signed integers |integer |integers = Signed integers: All whole numbers from -2147483648 to 2147483647; in ... |
Semantic change - unsigned == "non-negative", not "positive", added "special" value type for cases like powerups |
||
Line 5: | Line 5: | ||
|integers = [[Help:Values#Integers|Signed integers:]] All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. | |integers = [[Help:Values#Integers|Signed integers:]] All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. | ||
|unsigned integer | |unsigned integer | ||
|unsigned integers = [[Help:Values#Integers|Unsigned integers:]] All | |unsigned integers = [[Help:Values#Integers|Unsigned integers:]] All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967296. | ||
|float | |float | ||
|floats = [[Help:Values#Floating Point Values|Floating point values:]] Any decimal number (clearer range should be added in [[Template:Values]] | |floats = [[Help:Values#Floating Point Values|Floating point values:]] Any decimal number (clearer range should be added in [[Template:Values]] | ||
Line 26: | Line 26: | ||
|lepton | |lepton | ||
|leptons = [[Lepton|Leptons:]] Whole numbers - 1 lepton is 1/256th of a map cell. | |leptons = [[Lepton|Leptons:]] Whole numbers - 1 lepton is 1/256th of a map cell. | ||
|special = Values that don't conform to any typical format (see below) | |||
|#default = Warning - unknown value type selected! Please [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit] this page and fix the [[Template:Values|Values template]]! | |#default = Warning - unknown value type selected! Please [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit] this page and fix the [[Template:Values|Values template]]! | ||
}}</includeonly><noinclude>This template generates standardized value type descriptions for a number of common types, to be used in the <code>values=</code> parameter of [[Template:Flag]] | }}</includeonly><noinclude>This template generates standardized value type descriptions for a number of common types, to be used in the <code>values=</code> parameter of [[Template:Flag]] | ||
Line 42: | Line 43: | ||
*'''clsids''' or '''locomotors''' | *'''clsids''' or '''locomotors''' | ||
*'''leptons''' | *'''leptons''' | ||
*'''special''' | |||
In the case of <code>strings</code>, a second parameter can be added to note what the strings are limited to (such as valid warhead names, for example).</noinclude> | In the case of <code>strings</code>, a second parameter can be added to note what the strings are limited to (such as valid warhead names, for example).</noinclude> |
Revision as of 09:54, 16 December 2007
This template generates standardized value type descriptions for a number of common types, to be used in the values=
parameter of Template:Flag
Usage
{{Values|VALUE TYPE}}
Currently valid value types are:
- signed integers or integers
- unsigned integers
- floats
- unsigned bytes or bytes
- signed bytes
- booleans
- strings
- colors
- clsids or locomotors
- leptons
- special
In the case of strings
, a second parameter can be added to note what the strings are limited to (such as valid warhead names, for example).