Template:For loop delimited
This is a simplified wrapper for Template:For nowiki. It allows you to iterate over a custom delimited list.
The expected use case for this is to simplify passing lists between templates.
Usage[edit]
- {{For loop delimited|separator|delimited string|call=call}}
- {{For loop delimited|separator|delimited string|delim=delim|call=call}}
- {{For loop delimited|separator|delimited string|delim=delim|nowikistart=prefix|nowikiend=postfix}}
Paramaters[edit]
separator (required)
defines how the items are separateddelimited string (required
is a string separated bydelim
delim (optional)
the delimiter for the string, defaults to,
- Calling (one is required)
call
template (that takes one unnamed argument) to call (ex, 3x).nowikistart
andnowikiend
. Code to be placed before and after each param value (ex: for 3x, respectively use<nowiki>{{3x|</nowiki>
and<nowiki>}}</nowiki>
) Both are required if used
Examples[edit]
Markup | Renders as |
---|---|
|
a a a --b b b --c c c --d d d |
|
a a a --b b b --c c c --d d d |
|
a a a --b b b --c c c --d d d |
|
a a a --b b b --c c c --d d d |