<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://the.satanic.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AYearNav</id>
	<title>Module:YearNav - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://the.satanic.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AYearNav"/>
	<link rel="alternate" type="text/html" href="https://the.satanic.wiki/index.php?title=Module:YearNav&amp;action=history"/>
	<updated>2026-04-20T04:36:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://the.satanic.wiki/index.php?title=Module:YearNav&amp;diff=10972&amp;oldid=prev</id>
		<title>WikiGOD: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://the.satanic.wiki/index.php?title=Module:YearNav&amp;diff=10972&amp;oldid=prev"/>
		<updated>2021-04-30T02:24:05Z</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;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 02:24, 30 April 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&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;!-- diff cache key zzegtzyr_mw19226-mwjf_:diff:1.41:old-10971:rev-10972 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiGOD</name></author>
	</entry>
	<entry>
		<id>https://the.satanic.wiki/index.php?title=Module:YearNav&amp;diff=10971&amp;oldid=prev</id>
		<title>Mediawiki&gt;KockaAdmiralac: Undo revision 51434 by KockaAdmiralac (talk) Oh wait didn&#039;t realize the test was actually just plain links</title>
		<link rel="alternate" type="text/html" href="https://the.satanic.wiki/index.php?title=Module:YearNav&amp;diff=10971&amp;oldid=prev"/>
		<updated>2017-02-09T07:38:17Z</updated>

		<summary type="html">&lt;p&gt;Undo revision 51434 by &lt;a href=&quot;/index.php/Special:Contributions/KockaAdmiralac&quot; title=&quot;Special:Contributions/KockaAdmiralac&quot;&gt;KockaAdmiralac&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:KockaAdmiralac&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:KockaAdmiralac (page does not exist)&quot;&gt;talk&lt;/a&gt;) Oh wait didn&amp;#039;t realize the test was actually just plain links&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- &amp;lt;nowiki&amp;gt;&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.YearNav(frame)&lt;br /&gt;
    Pattern = frame.args[1] or -1&lt;br /&gt;
&lt;br /&gt;
    if Pattern==-1 then&lt;br /&gt;
        Pattern = &amp;quot;####-10 ・・ ####-1 ・ &amp;#039;&amp;#039;&amp;#039;####&amp;#039;&amp;#039;&amp;#039; ・ ####+1 ・・ ####+10&amp;quot; --Default. Will be overwritten if something was there.&lt;br /&gt;
        for i,v in pairs(frame.args) do&lt;br /&gt;
            Pattern= i .. &amp;quot;=&amp;quot; .. v&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    ThisPageTitle = mw.title.getCurrentTitle()&lt;br /&gt;
    Prefix = ThisPageTitle.nsText&lt;br /&gt;
    Namespace = ThisPageTitle.namespace&lt;br /&gt;
    PageName = ThisPageTitle.text&lt;br /&gt;
&lt;br /&gt;
    _, _, OriginalYear = string.find(PageName, &amp;quot;(%d%d%d%d)&amp;quot;)&lt;br /&gt;
    PageWithout = string.gsub(PageName, OriginalYear, &amp;quot;@@@@&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    CurrentText = Pattern&lt;br /&gt;
&lt;br /&gt;
    itsthere, _, _, _ = string.find(CurrentText, &amp;quot;####([%+%-])(%d+)&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    while itsthere do --Continue while there are still instances in the pattern to alter&lt;br /&gt;
        _, _, plusminus, amount = string.find(CurrentText, &amp;quot;####([%+%-])(%d+)&amp;quot;)&lt;br /&gt;
        if plusminus==&amp;quot;-&amp;quot; then&lt;br /&gt;
            NewYear = OriginalYear - amount&lt;br /&gt;
        else --assume it&amp;#039;s plus&lt;br /&gt;
            NewYear = OriginalYear + amount&lt;br /&gt;
        end&lt;br /&gt;
        NewPageName = string.gsub(PageWithout, &amp;quot;@@@@&amp;quot;, NewYear)&lt;br /&gt;
        if Namespace==0 then&lt;br /&gt;
            ReplacementSection = &amp;quot;[[&amp;quot; .. NewPageName .. &amp;quot;]]&amp;quot;&lt;br /&gt;
        else&lt;br /&gt;
            ReplacementSection = &amp;quot;[[:&amp;quot; .. Prefix .. &amp;quot;:&amp;quot; .. NewPageName .. &amp;quot;|&amp;quot; .. NewPageName .. &amp;quot;]]&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
        CurrentText = string.gsub(CurrentText, &amp;quot;####[%+%-]%d+&amp;quot;, ReplacementSection, 1)&lt;br /&gt;
        itsthere, _, _, _ = string.find(CurrentText, &amp;quot;####([%+%-])(%d+)&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    CurrentText = string.gsub(CurrentText, &amp;quot;####&amp;quot;, PageName)&lt;br /&gt;
&lt;br /&gt;
    return CurrentText&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Mediawiki&gt;KockaAdmiralac</name></author>
	</entry>
</feed>