<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pttlink.org/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://wiki.pttlink.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AFor"/>
	<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Module:For&amp;action=history"/>
	<updated>2026-04-06T10:59:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Module:For&amp;diff=5013&amp;oldid=prev</id>
		<title>Kg7qin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Module:For&amp;diff=5013&amp;oldid=prev"/>
		<updated>2021-09-06T01:41:43Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:41, 6 September 2021&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff::1.12:old-5012:rev-5013 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kg7qin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Module:For&amp;diff=5012&amp;oldid=prev</id>
		<title>Mediawiki&gt;Andrybak: don'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://wiki.pttlink.org/index.php?title=Module:For&amp;diff=5012&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('Module:Hatnote list')&lt;br /&gt;
local mHatnote = require('Module:Hatnote')&lt;br /&gt;
local yesNo = require('Module:Yesno')&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('Module:Arguments')&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;
			'no context parameter provided. Use {{other uses}} for &amp;quot;other uses&amp;quot; hatnotes.',&lt;br /&gt;
			'Template:For#Errors',&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't categorise talk pages and userspace&lt;br /&gt;
	local oddCat = skipCat and '' or '[[Category:Hatnote templates using unusual parameters]]'&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 == 'other uses') and ((category == true) or (category == nil)) and&lt;br /&gt;
			oddCat or ''&lt;br /&gt;
		)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Mediawiki&gt;Andrybak</name></author>
	</entry>
</feed>