Jump to content

Template:Values

From ModEnc²
Revision as of 19:52, 21 April 2008 by en>Vinifera7 (Trying not to break the template... Leptons removed. Other small changes.)

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:

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)".