Шаблон:Loop/док

Iz Vojne Enciklopedije
< Шаблон:LoopОво је најновија верзија ове странице; нема одобрених измена.
Пређи на навигацију Пређи на претрагу

Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted 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

  • {{loop|4|n}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted


  • {{loop|25|test}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted


  • {{#expr:2{{loop|50|*2}}}}
Грешка у изразу: непозната реч „strong“


When the string being replicated includes "=", we have to precede the second parameter with "2=", or use {{=}}.

  • {{loop|9|2==}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

or:

  • {{loop|9|{{=}}}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted


  • {{loop|3|{{CURRENTYEAR}}}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

* If string contains an equals sign, you must put '|2=string' instead of '|string'.

Template data

Ово је TemplateData документација за овај шаблон, коришћена у Визуелном уређивачу и у другим алаткама; погледајте месечни извештај о грешкама за овај шаблон.

TemplateData за Loop

The template is used to produce a simple loop of repeated strings.

Параметри шаблона

ПараметарОписВрстаСтатус
Number1

Number of times to repeat

бројобавезно
String2

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

текстобавезно

See also