<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Module%3AFor</id>
	<title>Module:For - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Module%3AFor"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:For&amp;action=history"/>
	<updated>2026-04-08T00:26:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Module:For&amp;diff=11579&amp;oldid=prev</id>
		<title>Caleb Cooper: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:For&amp;diff=11579&amp;oldid=prev"/>
		<updated>2020-10-15T10:41:03Z</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 10:41, 15 October 2020&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>Caleb Cooper</name></author>
	</entry>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Module:For&amp;diff=11578&amp;oldid=prev</id>
		<title>w&gt;Nihiltres: Fixed bad handling of nil in &quot;unusual parameters&quot; check</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:For&amp;diff=11578&amp;oldid=prev"/>
		<updated>2020-06-20T16:45:05Z</updated>

		<summary type="html">&lt;p&gt;Fixed bad handling of nil in &amp;quot;unusual parameters&amp;quot; check&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local mArguments --initialize lazily&lt;br /&gt;
local mHatlist = require(&amp;#039;Module:Hatnote list&amp;#039;)&lt;br /&gt;
local mHatnote = require(&amp;#039;Module:Hatnote&amp;#039;)&lt;br /&gt;
local yesNo = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--Implements {{For}} from the frame&lt;br /&gt;
--uses capitalized &amp;quot;For&amp;quot; to avoid collision with Lua reserved word &amp;quot;for&amp;quot;&lt;br /&gt;
function p.For (frame)&lt;br /&gt;
	mArguments = require(&amp;#039;Module:Arguments&amp;#039;)&lt;br /&gt;
	return p._For(mArguments.getArgs(frame))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--Implements {{For}} but takes a manual arguments table&lt;br /&gt;
function p._For (args)&lt;br /&gt;
	local use = args[1]&lt;br /&gt;
	if (not use) then&lt;br /&gt;
		return mHatnote.makeWikitextError(&lt;br /&gt;
			&amp;#039;no context parameter provided. Use {{other uses}} for &amp;quot;other uses&amp;quot; hatnotes.&amp;#039;,&lt;br /&gt;
			&amp;#039;Template:For#Errors&amp;#039;,&lt;br /&gt;
			args.category&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
	local pages = {}&lt;br /&gt;
	function two (a, b) return a, b, 1 end --lets us run ipairs from 2&lt;br /&gt;
	for k, v in two(ipairs(args)) do table.insert(pages, v) end&lt;br /&gt;
	local category = yesNo(args.category)&lt;br /&gt;
	return mHatnote._hatnote(&lt;br /&gt;
		mHatlist.forSeeTableToString({{use = use, pages = pages}}),&lt;br /&gt;
		{selfref = args.selfref}&lt;br /&gt;
	) .. (&lt;br /&gt;
			(use == &amp;#039;other uses&amp;#039;) and ((category == true) or (category == nil)) and&lt;br /&gt;
			&amp;#039;[[Category:Hatnote templates using unusual parameters]]&amp;#039; or &amp;#039;&amp;#039;&lt;br /&gt;
		)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>w&gt;Nihiltres</name></author>
	</entry>
</feed>