<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hokutonoken.wiki/en/index.php?action=history&amp;feed=atom&amp;title=Module%3AArchive</id>
	<title>Module:Archive - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hokutonoken.wiki/en/index.php?action=history&amp;feed=atom&amp;title=Module%3AArchive"/>
	<link rel="alternate" type="text/html" href="https://hokutonoken.wiki/en/index.php?title=Module:Archive&amp;action=history"/>
	<updated>2026-04-18T14:44:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://hokutonoken.wiki/en/index.php?title=Module:Archive&amp;diff=24650&amp;oldid=prev</id>
		<title>New World God: Created page with &quot;--- This module generates a list of Archive subpages. --  -- This uses expensive parser functions (#ifexist). -- Note that there can be no gaps (eg. &quot;Archive 3&quot; exists, but &quot;A...&quot;</title>
		<link rel="alternate" type="text/html" href="https://hokutonoken.wiki/en/index.php?title=Module:Archive&amp;diff=24650&amp;oldid=prev"/>
		<updated>2016-09-14T09:04:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;--- This module generates a list of Archive subpages. --  -- This uses expensive parser functions (#ifexist). -- Note that there can be no gaps (eg. &amp;quot;Archive 3&amp;quot; exists, but &amp;quot;A...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--- This module generates a list of Archive subpages.&lt;br /&gt;
-- &lt;br /&gt;
-- This uses expensive parser functions (#ifexist).&lt;br /&gt;
-- Note that there can be no gaps (eg. &amp;quot;Archive 3&amp;quot; exists, but &amp;quot;Archive 2&amp;quot; doesn&amp;#039;t) or it won&amp;#039;t work&lt;br /&gt;
local p = {}&lt;br /&gt;
 &lt;br /&gt;
function p.list(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	local pageName = mw.title.getCurrentTitle().fullText&lt;br /&gt;
 &lt;br /&gt;
	-- Auto-find archives&lt;br /&gt;
	local i = 1&lt;br /&gt;
	local exists&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	repeat&lt;br /&gt;
		local t = mw.title.new( pageName .. &amp;#039;/Archive_&amp;#039; .. i )&lt;br /&gt;
		exists = t.exists&lt;br /&gt;
		if exists then&lt;br /&gt;
			ret[#ret+1] = &amp;#039;[[&amp;#039; .. t.fullText .. &amp;#039;|Archive &amp;#039; .. i .. &amp;#039;]]&amp;lt;br/&amp;gt;&amp;#039;&lt;br /&gt;
			i = i + 1&lt;br /&gt;
		end&lt;br /&gt;
	until not exists&lt;br /&gt;
 &lt;br /&gt;
	-- Manual Name provided&lt;br /&gt;
	i = 1&lt;br /&gt;
	while args[i] do&lt;br /&gt;
		ret[#ret+1] = &amp;#039;[[&amp;#039; .. pageName..&amp;#039;/&amp;#039;..args[i] .. &amp;#039;|&amp;#039;..args[i]..&amp;#039;]]&amp;lt;br/&amp;gt;&amp;#039;&lt;br /&gt;
		i = i + 1&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
	return table.concat(ret, &amp;#039; &amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;br /&gt;
--[[Category:Lua Modules]]&lt;/div&gt;</summary>
		<author><name>New World God</name></author>
	</entry>
</feed>