Template:ForEach

From Demon Llama
Revision as of 15:53, 6 May 2023 by Crooney (talk | contribs) (Created page with "<onlyinclude>{{#if: {{{2|}}} | {{ {{{1}}} | {{#if: 1|{{{2}}}}} }} }}{{#if: {{{3|}}} | {{#if: {{{join|}}} | {{{join}}} }}{{ {{{1}}} |{{#if: 1|{{{ 3}}}}}}} }}{{#if: {{{ 4|}}} |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

{{ForEach|Template_To_Use|join=<string between invocations>
|First
|Second
|Third
|Fourth
}}

Using Repeat/Sample for the template (which just prepends "Hello " to the string) and join=,  yields:

Hello First, Hello Second, Hello Third, Hello Fourth