Template:Loop/doc

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search

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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Loop in articles based on its TemplateData.

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.

Template parameters

ParameterDescriptionTypeStatus
Number1

Number of times to repeat

Numberrequired
String2

The string to be repeated. Use {{=}} if the string contains an equals sign.

Stringrequired

See also