Šablon:Loop/dok
< Шаблон:LoopOvo je najnovija verzija ove stranice; nema odobrenih izmena.
Pređi na navigaciju
Pređi na pretragu
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}}}}
- Greška u izrazu: nepoznata reč „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
Ovo je TemplateData dokumentacija za ovaj šablon, korišćena u Vizuelnom uređivaču i u drugim alatkama; pogledajte mesečni izveštaj o greškama za ovaj šablon.
TemplateData za Loop
The template is used to produce a simple loop of repeated strings.
| Parametar | Opis | Vrsta | Status | |
|---|---|---|---|---|
| Number | 1 | Number of times to repeat | broj | obavezno |
| String | 2 | The string to be repeated. Use {{=}} if the string contains an equals sign. | tekst | obavezno |
See also
- Šablon:for loop (razgovor, poveznice, uredi)
- Šablon:repeat (razgovor, poveznice, uredi)
- Šablon:simple recursion (razgovor, poveznice, uredi)