<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://willamette.earth/wiki/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://willamette.earth/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ALoop%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://willamette.earth/wiki/index.php?title=Template:Loop/doc&amp;action=history"/>
	<updated>2026-04-23T01:46:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://willamette.earth/wiki/index.php?title=Template:Loop/doc&amp;diff=260&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://willamette.earth/wiki/index.php?title=Template:Loop/doc&amp;diff=260&amp;oldid=prev"/>
		<updated>2025-01-06T03:11:24Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:11, 5 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://willamette.earth/wiki/index.php?title=Template:Loop/doc&amp;diff=259&amp;oldid=prev</id>
		<title>Wikipedia&gt;Andrybak: Category:Repetition templates</title>
		<link rel="alternate" type="text/html" href="https://willamette.earth/wiki/index.php?title=Template:Loop/doc&amp;diff=259&amp;oldid=prev"/>
		<updated>2024-08-10T13:55:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/wiki/index.php?title=Category:Repetition_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Repetition templates (page does not exist)&quot;&gt;Category:Repetition templates&lt;/a&gt;&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>Wikipedia&gt;Andrybak</name></author>
	</entry>
</feed>