Template:Numbers

From Guild Wars 2 Wiki
Jump to navigationJump to search

1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50

Usage[edit]

Define #var:numbers as a sequence of numbers from a (inclusive) to b (inclusive) as a comma-separated list. For use in iterating over a range with #arraymap.

{{numbers}}
{{numbers|1|10}}

Parameters[edit]

1 (unnamed parameter)
Start index
2 (unnamed parameter)
End index

Example[edit]

{{#arraymap:{{numbers|1|10}}|,|@@@|{{#vardefine:count|{{#expr:{{#var:count|0}}+1}}}}(@@@ val)|}}

* {{#var:numbers}}
* {{#var:count}}

(1 val)(2 val)(3 val)(4 val)(5 val)(6 val)(7 val)(8 val)(9 val)(10 val)

  • 1,2,3,4,5,6,7,8,9,10
  • 10