ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Template:Values: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Vinifera7 (talk | contribs)
m Tabular formatting.
Vinifera7 (talk | contribs)
m Limitations...
Line 4: Line 4:
|int
|int
|integer
|integer
|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. {{#if: {{{2|}}} | (Limited to: {{{2}}})}}
|unsigned integer
|unsigned integer
|unsigned integers = [[Help:Values#Integers|Unsigned integers]]: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967296.
|unsigned integers = [[Help:Values#Integers|Unsigned integers]]: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967296. {{#if: {{{2|}}} | (Limited to: {{{2}}})}}
|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]]). {{#if: {{{2|}}} | (Limited to: {{{2}}})}}
|unsigned byte
|unsigned byte
|unsigned bytes
|unsigned bytes

Revision as of 18:48, 21 April 2008

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}}


Valid Value Type Codes
Value Type Codes
Signed integers signed integers, signed integer, integers, integer, or int
Unsigned integers unsigned integers or unsigned integer
Floating point values floats or float
Unsigned Bytes unsigned bytes, unsigned byte, bytes, or byte
Signed Bytes signed bytes or signed byte
Boolean values booleans, boolean, or bool
Strings strings, string, or str
Comma-separated list of strings stringlist or listofstrings
Colors colors or color
CLSIDs clsids, clsid, locomotors, or locomotor
Percentages percentages, percentage, percents, percent, or %
Non conforming values special

In the case of strings and stringlist, a second parameter can be added to note what the strings are limited to. For example:

{{Values|stringlist|[[Animations]]}}

yields "Comma-separated list of strings. (Limited to: Animations)".

In cause of stringlist, an additional argument separator can be provided. It defaults to "Comma" and describes the separator between the list entries. For example:

{{Values|stringlist|[[Sound filenames]]|separator=Whitespace}}

yields "Whitespace-separated list of strings. (Limited to: Sound filenames)".