ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Template:Values
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:
signed integers
,signed integer
,integers
,integer
, orint
- Unsigned integers:
unsigned integers
orunsigned integer
- Floating point values:
floats
orfloat
- Unsigned Bytes:
unsigned bytes
,unsigned byte
,bytes
, orbyte
- Signed Bytes:
signed bytes
orsigned byte
- Boolean values:
booleans
,boolean
, orbool
- Strings:
strings
,string
, orstr
- Comma-separated list of strings:
stringlist
orlistofstrings
- Colors:
colors
orcolor
- CLSIDs:
clsids
,clsid
,locomotors
, orlocomotor
- 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)".