Template:Values: Difference between revisions
Appearance
en>DCoder m Actually, sound/md.ini has commaphobia and uses whitespace instead - adding "separator" argument defaulting to Comma |
en>DCoder m Fixing space |
||
| Line 19: | Line 19: | ||
|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 | |stringlist | ||
|listofstrings = {{{ | |listofstrings = {{{separator|Comma}}}-separated list of [[Help:Values#Strings|strings]]. {{#if: {{{2|}}} | (Limited to: {{{2}}})}} | ||
|color | |color | ||
|colors = [[Help:Values#Colors|Colors]] | |colors = [[Help:Values#Colors|Colors]] | ||
Revision as of 06:19, 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}}
Currently valid value types are:
signed integersorintegersunsigned integersfloatsunsigned bytesorbytessigned bytesbooleansstringsstringlistorlistofstringscolorsclsidsorlocomotorsleptonspercentagesspecial
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)".