<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FEvad37%2FSignpost_archives_by_year</id>
	<title>Module:Sandbox/Evad37/Signpost archives by year - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FEvad37%2FSignpost_archives_by_year"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Evad37/Signpost_archives_by_year&amp;action=history"/>
	<updated>2026-04-20T19:58:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/Evad37/Signpost_archives_by_year&amp;diff=145411&amp;oldid=prev</id>
		<title>imported&gt;Legoktm: Replace Module:No globals with require( &quot;strict&quot; )</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Evad37/Signpost_archives_by_year&amp;diff=145411&amp;oldid=prev"/>
		<updated>2022-10-23T21:00:25Z</updated>

		<summary type="html">&lt;p&gt;Replace &lt;a href=&quot;/research/Module:No_globals&quot; title=&quot;Module:No globals&quot;&gt;Module:No globals&lt;/a&gt; with require( &amp;quot;strict&amp;quot; )&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local startYear = 2005&lt;br /&gt;
local endYear&lt;br /&gt;
local prefix = &amp;quot;Wikipedia:Wikipedia Signpost/Archives/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
p.list = function(frame)&lt;br /&gt;
	-- Get current year&lt;br /&gt;
	frame = frame or mw.getCurrentFrame() &lt;br /&gt;
	local lang = mw.language.new(&amp;quot;en&amp;quot;)&lt;br /&gt;
	local currentYear = lang:formatDate(&amp;quot;Y&amp;quot;)&lt;br /&gt;
	&lt;br /&gt;
	-- Get end year (this year if the page exists, otherwise last year)&lt;br /&gt;
	local currentYearTitle = mw.title.new(prefix .. currentYear)&lt;br /&gt;
	if currentYearTitle.exists then&lt;br /&gt;
		endYear = tonumber(currentYear)&lt;br /&gt;
	else&lt;br /&gt;
		endYear = tonumber(currentYear) - 1&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Create a table of links&lt;br /&gt;
	local links = {}&lt;br /&gt;
	local year = startYear&lt;br /&gt;
	while year &amp;lt;= endYear do&lt;br /&gt;
		table.insert(links, &amp;quot;[[&amp;quot;..prefix..year..&amp;quot;|&amp;quot;..year..&amp;quot;]]&amp;quot;)&lt;br /&gt;
		year = year + 1&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Format as wikitext&lt;br /&gt;
	local wikitext = table.concat(links, &amp;quot;{{·}}&amp;quot;)&lt;br /&gt;
	&lt;br /&gt;
	-- return after pre-processing&lt;br /&gt;
	return frame:preprocess(wikitext)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Legoktm</name></author>
	</entry>
</feed>