ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "Template:Values"

From ModEnc
Jump to: navigation, search
m (Formatting 'n' stuff)
(reworking stringlist - all lists referenced in modenc are comma-separated as are all lists in the games (as far as I can tell))
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 = A list of [[Help:Values#Strings|strings]], usually separated by commas or whitespace. {{#if: {{{2|}}} | (Limited to: {{{2}}})}}
+
|listofstrings = 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 16:40, 20 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. For example:

{{Values|stringlist|[[Animations]]}}

yields "Comma-separated list of strings. (Limited to: Animations)

".