Template:Item

From Mediawiki1
Revision as of 06:30, 15 March 2012 by Chrisahn (talk | contribs)
Jump to navigationJump to search

Gets 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:

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