<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://themidnight.wiki/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://themidnight.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AFor"/>
	<link rel="alternate" type="text/html" href="https://themidnight.wiki/index.php?title=Module:For&amp;action=history"/>
	<updated>2026-04-03T21:06:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://themidnight.wiki/index.php?title=Module:For&amp;diff=6205&amp;oldid=prev</id>
		<title>Timothy: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://themidnight.wiki/index.php?title=Module:For&amp;diff=6205&amp;oldid=prev"/>
		<updated>2023-05-29T02:56:08Z</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 22:56, 28 May 2023&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>Timothy</name></author>
	</entry>
	<entry>
		<id>https://themidnight.wiki/index.php?title=Module:For&amp;diff=6204&amp;oldid=prev</id>
		<title>wikipedia&gt;Andrybak: don&#039;t add talk pages and pages in the user namespace to :Category:Hatnote templates with errors – this is similar to Module:Other uses of and Module:Hatnote</title>
		<link rel="alternate" type="text/html" href="https://themidnight.wiki/index.php?title=Module:For&amp;diff=6204&amp;oldid=prev"/>
		<updated>2020-11-02T22:29:56Z</updated>

		<summary type="html">&lt;p&gt;don&amp;#039;t add talk pages and pages in the user namespace to &lt;a href=&quot;/index.php?title=Category:Hatnote_templates_with_errors&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Hatnote templates with errors (page does not exist)&quot;&gt;Category:Hatnote templates with errors&lt;/a&gt; – this is similar to &lt;a href=&quot;/wiki/Special:Diff/953627233/986768317&quot; title=&quot;Special:Diff/953627233/986768317&quot;&gt;Module:Other uses of&lt;/a&gt; and &lt;a href=&quot;/wiki/Special:Diff/967664662&quot; title=&quot;Special:Diff/967664662&quot;&gt;Module:Hatnote&lt;/a&gt;&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 title = mw.title.getCurrentTitle()&lt;br /&gt;
	local skipCat = title.isTalkPage or title.namespace == 2 --don&amp;#039;t categorise talk pages and userspace&lt;br /&gt;
	local oddCat = skipCat and &amp;#039;&amp;#039; or &amp;#039;[[Category:Hatnote templates using unusual parameters]]&amp;#039;&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;
			oddCat 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>wikipedia&gt;Andrybak</name></author>
	</entry>
</feed>