Difference between revisions of "Template:ForEach"

From Demon Llama
Jump to navigation Jump to search
(Created page with "<onlyinclude>{{#if: {{{2|}}} | {{ {{{1}}} | {{#if: 1|{{{2}}}}} }} }}{{#if: {{{3|}}} | {{#if: {{{join|}}} | {{{join}}} }}{{ {{{1}}} |{{#if: 1|{{{ 3}}}}}}} }}{{#if: {{{ 4|}}} |...")
 
(No difference)

Latest revision as of 15:53, 6 May 2023

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