From ScummVM :: Wiki
Revision as of 09:27, 9 April 2010 by Jvprat (talk | contribs) (Fill the usage text)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template returns the value mapped to a key, given a list of keys and their associated values.


  • keys is a list of keywords separated by the # symbol.
  • values is a list of values separated by the # symbol.
  • key is the element that will be used to find its associated value.

The keys and values lists must have the same number of elements. In case the given key isn't found in the keys list, an empty string is returned.


  • {{Map|keys=a#b#c|values=First value#Second value#Third value|key=b}}
    Will make the selection on this map:
    a = First value
    b = Second value
    c = Third value
    And will show: Second value