<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AForeach%2Fdoc</id>
	<title>Template:Foreach/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AForeach%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Foreach/doc&amp;action=history"/>
	<updated>2026-04-19T01:47:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://compusofia.com/w/index.php?title=Template:Foreach/doc&amp;diff=558&amp;oldid=prev</id>
		<title>Majestix: 1 revision imported: Initial Setup</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Foreach/doc&amp;diff=558&amp;oldid=prev"/>
		<updated>2026-04-06T12:12:54Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Initial Setup&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 14:12, 6 April 2026&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>Majestix</name></author>
	</entry>
	<entry>
		<id>https://compusofia.com/w/index.php?title=Template:Foreach/doc&amp;diff=557&amp;oldid=prev</id>
		<title>en&gt;Pppery: /* Example */</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Foreach/doc&amp;diff=557&amp;oldid=prev"/>
		<updated>2024-12-10T20:55:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Documentation subpage}}&lt;br /&gt;
{{timw|Foreach}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
== Purpose ==&lt;br /&gt;
To repeatedly use a template for each argument in a pipe delimited list. The template handles up to 100 list items.&lt;br /&gt;
&lt;br /&gt;
Coming here to use this template in a new page, or put it somewhere it has not been used before? Consider using [[Template:Fe]] instead.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
;Create comma delimited links to each hook in a list:&lt;br /&gt;
{{tlx|foreach|hook|delim{{=}}, |ParserBeforePreprocess|ParserAfterTidy}} → {{foreach|hook|delim=,|ParserBeforePreprocess|ParserAfterTidy}}&lt;br /&gt;
&lt;br /&gt;
Compare:&lt;br /&gt;
&lt;br /&gt;
{{xpds|fe|hook|, |ParserBeforePreprocess|ParserAfterTidy}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{tlx|foreach|delim{{=}}&amp;#039;&amp;#039;delim&amp;#039;&amp;#039;|&amp;#039;&amp;#039;templatename&amp;#039;&amp;#039;|&amp;#039;&amp;#039;item1&amp;#039;&amp;#039;|&amp;#039;&amp;#039;item2&amp;#039;&amp;#039;...}}&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;templatename&amp;#039;&amp;#039; - the name of a template that takes at least one parameter. Only the first parameter will be used, so the remaining parameters must be optional.&lt;br /&gt;
* &amp;#039;&amp;#039;item1&amp;#039;&amp;#039; - the first item to pass to the template, resulting in &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;templatename&amp;#039;&amp;#039;|&amp;#039;&amp;#039;item1&amp;#039;&amp;#039;}}&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;item2&amp;#039;&amp;#039;,... - (optional) the second and following items to pass to the template, resulting in &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;templatename&amp;#039;&amp;#039;|&amp;#039;&amp;#039;item2&amp;#039;&amp;#039;}}&amp;lt;/code&amp;gt;, etc.&lt;br /&gt;
* &amp;#039;&amp;#039;delim&amp;#039;&amp;#039; - (optional) a delimiter that should be inserted between the list items after the template &amp;#039;&amp;#039;templatename&amp;#039;&amp;#039; has been applied to each.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Fe]]&lt;br /&gt;
* {{Q|Q10966397}}&lt;/div&gt;</summary>
		<author><name>en&gt;Pppery</name></author>
	</entry>
</feed>