Template:Iter

From Tensura Wiki
Jump to navigation Jump to search
File:Template-info.svg Documentation Edit this documentation at Template:Iter/doc.
(edit • history • purge)

This template helps you create indexed columns in tables (particularly Cargo queries) and to retrieve iterator values when using the parser function {{#arraymaptemplate (bundled with Extension:ParserPower on wiki.gg).

Simple counting

* {{iter|}}
* {{iter|}}
* {{iter|}}
* {{iter|}}
  • 1
  • 2
  • 3
  • 4

Reset the counter

* {{iter|reset=yes}}
* {{iter|}}
* {{iter|reset=yes}}
* {{iter|}}
  • 1
  • 2
  • 1
  • 2

Multiple counters

* {{iter|key1}}
* {{iter|key2}}
* {{iter|key2}}
* {{iter|key1}}
  • 1
  • 1
  • 2
  • 2

Get value without incrementing

* {{iter|reset=yes}}
* {{iter|}}
* {{iter|}}
* {{iter|get=yes}}
  • 1
  • 2
  • 3
  • 3