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
Added percentages |
Adding stringlist |
||
Line 18: | Line 18: | ||
|string | |string | ||
|strings = [[Help:Values#Strings|Strings:]] Normal text. {{#if: {{{2|}}} | (Limited to: {{{2}}})}} | |strings = [[Help:Values#Strings|Strings:]] Normal text. {{#if: {{{2|}}} | (Limited to: {{{2}}})}} | ||
|stringlist | |||
|listofstrings = A list of [[Help:Values#Strings|strings]], usually separated by commas or whitespace. {{#if: {{{2|}}} | (Limited to: {{{2}}})}} | |||
|color | |color | ||
|colors = [[Help:Values#Colors|Colors]] | |colors = [[Help:Values#Colors|Colors]] | ||
Line 43: | Line 45: | ||
*'''booleans''' | *'''booleans''' | ||
*'''strings''' | *'''strings''' | ||
*'''stringlist''' or '''listofstrings''' | |||
*'''colors''' | *'''colors''' | ||
*'''clsids''' or '''locomotors''' | *'''clsids''' or '''locomotors''' | ||
Line 48: | Line 51: | ||
*'''percentages''' | *'''percentages''' | ||
*'''special''' | *'''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> and <code>stringlist</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 04:13, 14 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}}
Currently valid value types are:
- signed integers or integers
- unsigned integers
- floats
- unsigned bytes or bytes
- signed bytes
- booleans
- strings
- stringlist or listofstrings
- colors
- clsids or locomotors
- leptons
- percentages
- special
In the case of strings
and stringlist
, a second parameter can be added to note what the strings are limited to (such as valid warhead names, for example).