Template:++

From Zelda Dungeon Wiki
Revision as of 21:21, February 12, 2013 by Locke (talk | contribs) (Created page with "<onlyinclude>{{#vardefineecho:{{{1}}}|{{#expr:{{#var:{{{1}}}}}+1}}}}</onlyinclude> ==Purpose== This template slightly simplifies the common task of incrementing a variable. I...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.

1

Purpose

This template slightly simplifies the common task of incrementing a variable. 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).