Template:Increment
Jump to navigation
Jump to search
This template should increment a number on a page.
Syntax
{{Increment
|If a keyword is placed in the first slot, it will count them together.
|reset = resets the count back to 1.
|get = gets value without incrementing}}
Examples
Simple counting
* {{Increment|}} * {{Increment|}} * {{Increment|}} * {{Increment|}}
- 1
- 2
- 3
- 4
Reset the counter
* {{Increment|reset=yes}} * {{Increment|}} * {{Increment|reset=yes}} * {{Increment|}}
- 1
- 2
- 1
- 2
Multiple counters
* {{Increment|key1}} * {{Increment|key2}} * {{Increment|key2}} * {{Increment|key1}}
- 1
- 1
- 2
- 2
Get value without incrementing
* {{Increment|reset=yes}} * {{Increment|}} * {{Increment|}} * {{Increment|get=yes}}
- 1
- 2
- 3
- 3