<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://nssportwiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ALoop%2Fdoc</id>
	<title>Template:Loop/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nssportwiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ALoop%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Template:Loop/doc&amp;action=history"/>
	<updated>2026-05-17T03:59:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://nssportwiki.com/index.php?title=Template:Loop/doc&amp;diff=74375&amp;oldid=prev</id>
		<title>Osarius: Created page with &quot;{{high-use}} {{Documentation subpage}} &lt;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&gt; {{lua|Module:String}} 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 ==  &lt;syntaxhighlight lang=&quot;wikitext&quot;&gt;{{loop|times to repeat|string}}&lt;/syntaxhighlight&gt;  If &#039;&#039;&#039;string&#039;&#039;&#039; contains an equals sign, you must put &quot;|2=string&quot; instead of &quot;|string&quot;.  == Examples == {|class=&quot;wi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Template:Loop/doc&amp;diff=74375&amp;oldid=prev"/>
		<updated>2026-01-21T13:04:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{high-use}} {{Documentation subpage}} &amp;lt;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&amp;gt; {{lua|Module:String}} This template is used to produce a simple loop. It is based on &lt;a href=&quot;/index.php?title=Module:String&quot; title=&quot;Module:String&quot;&gt;Module:String&lt;/a&gt;, and there is no limit to the number of iterations it can perform.  == Usage ==  &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{loop|times to repeat|string}}&amp;lt;/syntaxhighlight&amp;gt;  If &amp;#039;&amp;#039;&amp;#039;string&amp;#039;&amp;#039;&amp;#039; contains an equals sign, you must put &amp;quot;|2=string&amp;quot; instead of &amp;quot;|string&amp;quot;.  == Examples == {|class=&amp;quot;wi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{high-use}}&lt;br /&gt;
{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&amp;gt;&lt;br /&gt;
{{lua|Module:String}}&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{loop|times to repeat|string}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;#039;&amp;#039;&amp;#039;string&amp;#039;&amp;#039;&amp;#039; contains an equals sign, you must put &amp;quot;|2=string&amp;quot; instead of &amp;quot;|string&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code&lt;br /&gt;
! Output&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{loop|4|n}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{loop|4|n}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{loop|25|test me}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{loop|25|test me}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#expr:2{{loop|50|*2}}}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{#expr:2{{loop|50|*2}}}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{loop|3|{{CURRENTYEAR}}}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{loop|3|{{CURRENTYEAR}}}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{loop|{{#expr:7*2}}|&amp;amp;nbsp; &amp;#039;&amp;#039;&amp;#039;MUDA}}!&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{loop|{{#expr:7*2}}|&amp;amp;nbsp; &amp;#039;&amp;#039;&amp;#039;MUDA}}!&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
When the string being replicated includes &amp;quot;=&amp;quot;, we have to precede the second parameter with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;2=&amp;lt;/syntaxhighlight&amp;gt;&amp;quot;, or use {{tl|1==}}.&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code&lt;br /&gt;
! Output&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{loop|9|2==}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{loop|9|2==}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{loop|9|{{=}}}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{loop|9|{{=}}}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Surrounding whitespace is always stripped; you must use {{ml|string|rep|section=#rep}} instead to preserve it.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code&lt;br /&gt;
! Output&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:String|rep| hello |3}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{#invoke:String|rep| hello |3}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{loop|3| hello }}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{loop|3| hello }}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Template data==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
        &amp;quot;description&amp;quot;: &amp;quot;The template is used to produce a simple loop of repeated strings.&amp;quot;,&lt;br /&gt;
        &amp;quot;params&amp;quot;: {&lt;br /&gt;
                &amp;quot;1&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;Number&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;Number of times to repeat&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: true&lt;br /&gt;
                },&lt;br /&gt;
                &amp;quot;2&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;String&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;The string to be repeated. Use {{=}} if the string contains an equals sign.&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: true&lt;br /&gt;
                }&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*{{lt|For loop}}&lt;br /&gt;
*{{lt|Simple recursion}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Repetition templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osarius</name></author>
	</entry>
</feed>