<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.ystv.co.uk/wiki/Template:Foreach/doc?action=history&amp;feed=atom</id>
	<title>Template:Foreach/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ystv.co.uk/wiki/Template:Foreach/doc?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.ystv.co.uk/wiki/Template:Foreach/doc?action=history"/>
	<updated>2026-10-20T05:24:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.11</generator>
	<entry>
		<id>https://wiki.ystv.co.uk/index.php?title=Template:Foreach/doc&amp;diff=12442&amp;oldid=prev</id>
		<title>Joseph.Wharfe: Created page with &quot;&lt;noinclude&gt;{{Documentation subpage}} {{timw|Foreach}} &lt;/noinclude&gt; == Purpose == To repeatedly use a template for each argument in a pipe delimited list. The template handles...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ystv.co.uk/index.php?title=Template:Foreach/doc&amp;diff=12442&amp;oldid=prev"/>
		<updated>2020-04-09T22:59:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;noinclude&amp;gt;{{Documentation subpage}} {{timw|Foreach}} &amp;lt;/noinclude&amp;gt; == Purpose == To repeatedly use a template for each argument in a pipe delimited list. The template handles...&amp;quot;&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;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{foreach|SeeHook|delim=, |ParserBeforeStrip|ParserAfterStrip}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{foreach|SeeHook|delim=, |ParserBeforeStrip|ParserAfterStrip}}&lt;br /&gt;
&lt;br /&gt;
Compare:&lt;br /&gt;
&lt;br /&gt;
{{xpds|fe|SeeHook|, |ParserBeforeStrip|ParserAfterStrip}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;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;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;}}&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;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;}}, 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>Joseph.Wharfe</name></author>
	</entry>
</feed>