Template:++: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
(Created page with "<onlyinclude>{{#vardefineecho:{{{1}}}|{{#expr:{{#var:{{{1}}}}}+1}}}}</onlyinclude> ==Purpose== This template slightly simplifies the common task of incrementing a variable. I...") |
(No difference)
|
Revision as of 21:21, February 12, 2013
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).