Template:++

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

1

Purpose

This template slightly simplifies the common task of incrementing a variable. By default, it also returns the variable post-increment. An undefined variable is incremented to 1.

Usage

{{++| name }}

  • name — The name of the variable (without #var syntax).

To return the variable pre-increment, use: {{++| name | pre }}

To not return the variable, use: {{++| name | no }}