Template:Loop/doc
Lua error: Internal error: The interpreter exited with status 127. Lua error: Internal error: The interpreter exited with status 127. Lua error: Internal error: The interpreter exited with status 127. This template is used to produce a simple loop. It is based on Module:String, and there is no limit to the number of iterations it can perform.
Usage
{{loop|times to repeat|string}}
If string contains an equals sign, you must put "|2=string" instead of "|string".
Examples
Markup | Renders asLua error: Internal error: The interpreter exited with status 127. |
---|---|
When the string being replicated includes "=", we have to precede the second parameter with "2=", or use {{}}.
Markup | Renders asLua error: Internal error: The interpreter exited with status 127. |
---|---|
Surrounding whitespace is always stripped; you must use {{Lua error: Internal error: The interpreter exited with status 127.}} instead to preserve it.
Markup | Renders asLua error: Internal error: The interpreter exited with status 127. |
---|---|
Template data
TemplateData for Loop
Lua error: Internal error: The interpreter exited with status 127.
The template is used to produce a simple loop of repeated strings.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Number | 1 | Number of times to repeat | Number | required |
String | 2 | The string to be repeated. Use {{=}} if the string contains an equals sign. | String | required |
See also
- Template:For loop (edit | talk | history | links | watch | logs)
- Template:Simple recursion (edit | talk | history | links | watch | logs)