Template:ForLoop/doc
From ATLauncher Wiki
This template is used to create a string multiple times. It works very similar to the #for
function in Extension:LoopFunctions
Syntax[edit]
Type {{ForLoop|<iterations>|<string>|<iterationPattern>}}
somewhere.
- Parameters
- iterations: The number of times to repeat the string.
- string: The string to repeat. Note, if this has a space in it, including right after the '|', then it will show up in the expansion.
- iterationPattern: If this string shows up in the
string
parameter, it will be replaced by the current iteration count. This defaults to "$n$" as it does in the extension.
Examples[edit]
Basic Usage[edit]
{{ForLoop | 4 |[[File:Heart.png]]}}
gives...
Iteration Count[edit]
{{ForLoop | 4 |$n$, }}
gives...
1, 2, 3, 4,