Template:Item

From Mediawiki1
Revision as of 07:36, 15 March 2012 by Chrisahn (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Selects an item from a list. The first parameter is the list - a string containing items separated by commas. The second parameter is the zero-based index of the item. Negative indexes start from the end of the list.

Examples:

  • {{item|a,b,c,d|1}} results in b
  • {{item|a,b,c,d|-2}} results in c

Also check out the tests.