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
Adding stringlist |
m Formatting 'n' stuff |
||
Line 33: | Line 33: | ||
|special = Values that don't conform to any typical format (see below) | |special = Values that don't conform to any typical format (see below) | ||
|#default = Warning - unknown value type selected! Please [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit] this page and fix the [[Template:Values|Values template]]! | |#default = Warning - unknown value type selected! Please [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit] this page and fix the [[Template:Values|Values template]]! | ||
}}</includeonly><noinclude>This template generates standardized value type descriptions for a number of common types, to be used in the <code>values=</code> parameter of [[Template:Flag]] | }}</includeonly><noinclude>This template generates standardized value type descriptions for a number of common types, to be used in the <code>values=</code> parameter of [[Template:Flag]]. | ||
==Usage== | ==Usage== | ||
<pre>{{Values|VALUE TYPE}}</pre> | <pre>{{Values|VALUE TYPE}}</pre> | ||
Currently valid value types are: | Currently valid value types are: | ||
* | *<code>signed integers</code> '''or''' <code>integers</code> | ||
* | *<code>unsigned integers</code> | ||
* | *<code>floats</code> | ||
* | *<code>unsigned bytes</code> '''or''' <code>bytes</code> | ||
* | *<code>signed bytes</code> | ||
* | *<code>booleans</code> | ||
* | *<code>strings</code> | ||
* | *<code>stringlist</code> '''or''' <code>listofstrings</code> | ||
* | *<code>colors</code> | ||
* | *<code>clsids</code> '''or''' <code>locomotors</code> | ||
* | *<code>leptons</code> | ||
* | *<code>percentages</code> | ||
* | *<code>special</code> | ||
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 | |||
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. For example: | |||
<pre>{{Values|stringlist|[[Animations]]}}</pre> | |||
yields "{{Values|stringlist|[[Animations]]}}". | |||
</noinclude> |
Revision as of 05:51, 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
orintegers
unsigned integers
floats
unsigned bytes
orbytes
signed bytes
booleans
strings
stringlist
orlistofstrings
colors
clsids
orlocomotors
leptons
percentages
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 "A list of strings, usually separated by commas or whitespace. (Limited to: Animations)".