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

Template:Values: Difference between revisions

From ModEnc
Jump to navigation Jump to search
m missing parenthesis
Added percentages
Line 26: Line 26:
|lepton
|lepton
|leptons = [[Lepton|Leptons:]] Whole numbers - 1 lepton is 1/256th of a map cell.
|leptons = [[Lepton|Leptons:]] Whole numbers - 1 lepton is 1/256th of a map cell.
|percentage
|percentages
|% = [[Help:Values#Percentages|Percentages:]] Either a direct percentage (e.g. "50%"), or a [[Help:Values#Floating Point Values|floating point value]] (e.g. "0.5").
|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]]!
Line 43: Line 46:
*'''clsids''' or '''locomotors'''
*'''clsids''' or '''locomotors'''
*'''leptons'''
*'''leptons'''
*'''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>, 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 05:47, 9 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
  • colors
  • clsids or locomotors
  • leptons
  • percentages
  • special

In the case of strings, a second parameter can be added to note what the strings are limited to (such as valid warhead names, for example).