Template:Increment
From Guild Wars 2 Wiki
Jump to navigationJump to search
Usage[edit]
Increments a variable #var:<identifier> by 1. If the variable does not exist, it is initialized to 0.
{{increment|<identifier>}}
Parameters[edit]
- 1 (unnamed parameter)
- Identifier for the variable. Access the value with {{#var:<identifier>}}.
- 2 (unnamed parameter)
- Change Increment.
Example[edit]
{{increment|example}} * The value of example is {{#var:example}}. {{increment|example|2}} * The value of example is {{#var:example}}. {{increment|example|3}} * The value of example is {{#var:example}}.
- The value of example is 1.
- The value of example is 3.
- The value of example is 6.