Шаблон:Increment

Материал из Guild Wars 2 wiki
Версия от 17:02, 25 июня 2017; Blood (обсуждение | вклад) (Новая страница: «<includeonly>{{#vardefine:{{{1}}}| {{#expr: {{#var:{{{1}}}|0}} + {{{2|1}}} }} }}</includeonly><noinclude> == Usage == Increments a variable '''#var:<identifier>'…»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск


Usage[править]

Increments a variable #var:<identifier> by 1. If the variable does not exist, it is initialized to 0.

{{increment|<identifier>}}

Parameters[править]

Unnamed parameter 1
Identifier for the variable. Access the value with {{#var:<identifier>}}.

Example[править]

{{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.