Template:Loop/doc

Revision as of 12:07, 6 November 2021 by imported>GKFX (Examples: fix display of samples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Lua error: Internal error: The interpreter exited with status 1. Lua error: Internal error: The interpreter exited with status 1. Lua error: Internal error: The interpreter exited with status 1. 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 1.

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 1.

Surrounding whitespace is always stripped; you must use {{Lua error: Internal error: The interpreter exited with status 1.}} instead to preserve it.

Markup Renders asLua error: Internal error: The interpreter exited with status 1.

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 1.

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