Template:--

From Zelda Dungeon Wiki
Revision as of 22:33, November 15, 2014 by Locke (talk | contribs) (incorporated enhancements from ++ (pre-decrement or null return options))
(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 decrementing a variable. It also returns the variable post-decrement. An undefined variable is decremented to -1.

Usage

{{--| name }}

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

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

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