Template:Infobox Var: Difference between revisions
(Created page with "{{#invoke:Infobox Var|main}}<noinclude>{{/doc}}</noinclude>") |
(No difference)
|
Latest revision as of 01:32, 17 October 2024
Infobox Var | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | ? (edit) | ||||||||||||||||||||||||||||
Index | -1 | ||||||||||||||||||||||||||||
Content | Unknown | ||||||||||||||||||||||||||||
Class | ? (edit) | ||||||||||||||||||||||||||||
Standard infobox parameters
This infobox uses Module:Infobox, which provides a number of standard parameters.
Parameters
type
The type of Var, either "Varbit" or "Varplayer".
index
The index of the Var, which should always be a number.
name
The name of the Varbit or Varplayer. There are no official names, but names should generally reflect the usage of the Var. This param is optional, and if it is not included, the name defaults to "Varbit X" or "Varplayer X". If used on pages other than RS:Varbit/X or RS:Varplayer/X, note that this param should be set in order to avoid strange default names being generated from the title of the page.
content
The content that the Var is used for, as a link. If the Var is used in multiple pieces of content, this should be explained in prose with this param set to "Multiple". If the Var is used in a way that would not be considered content, this param should be set to "Other".
class
The class of the Var, which describes how the Var's value is interpreted. The following classes are supported with categories.
- Enum - Denotes a Var where each value is interpreted as a different state.
- Switch - Denotes a Var with two values, typically 0 and 1, where one state is interpreted as ON and the other OFF.
- Bitmap - Denotes a Var where the value of the Var is not interpreted as a single unit. Instead, each bit or groups of bits in the Var are interpreted separately.
- Counter - Denotes a Var where the value is interpreted as a counter, usually counting up or down incrementally.
- Other - Denotes a Var which does not fall into any of the above categories.