Foreach

From Sega Retro

A template for iterating through a list and doing something to each item.

Examples

{{foreach
|list=Whoop, gloop, bloop, doop, shoop
|delimiter=,
}}

Produces:

Whoopgloopbloopdoopshoop

{{foreach
|list=Mega Drive-Master System-Saturn-Dreamcast
|delimiter=-
}}

Produces:

Mega DriveMaster SystemSaturnDreamcast