Template:For Each

From Green Family Wiki
Revision as of 10:00, 25 June 2015 by Dan (talk | contribs)
Jump to: navigation, search

Apply a template to each element of a list.

  • First parameter: string to split
  • Second parameter: delimiter to search for; default is comma
  • Third parameter: replacement delimiter; default is the search delimiter, or comma+space if none
  • template: template to apply to each substring (string provided as first parameter; index provided as indexl param provided as param)
  • param: extra parameter to pass to the template; default is empty