<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nb">
	<id>https://www.wikisida.no/index.php?action=history&amp;feed=atom&amp;title=Modul%3AAncient_Egypt_kings</id>
	<title>Modul:Ancient Egypt kings - Sideversjonshistorikk</title>
	<link rel="self" type="application/atom+xml" href="https://www.wikisida.no/index.php?action=history&amp;feed=atom&amp;title=Modul%3AAncient_Egypt_kings"/>
	<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Ancient_Egypt_kings&amp;action=history"/>
	<updated>2026-04-04T02:11:27Z</updated>
	<subtitle>Versjonshistorikk for denne siden på wikien</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.wikisida.no/index.php?title=Modul:Ancient_Egypt_kings&amp;diff=2171&amp;oldid=prev</id>
		<title>Wikisida: Én sideversjon ble importert</title>
		<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Ancient_Egypt_kings&amp;diff=2171&amp;oldid=prev"/>
		<updated>2026-02-08T17:30:28Z</updated>

		<summary type="html">&lt;p&gt;Én sideversjon ble importert&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;nb&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Eldre sideversjon&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Sideversjonen fra 8. feb. 2026 kl. 17:30&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;nb&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Ingen forskjell)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key c1wiki:diff:1.41:old-2170:rev-2171 --&gt;
&lt;/table&gt;</summary>
		<author><name>Wikisida</name></author>
	</entry>
	<entry>
		<id>https://www.wikisida.no/index.php?title=Modul:Ancient_Egypt_kings&amp;diff=2170&amp;oldid=prev</id>
		<title>nb&gt;Tholme: 4 revisjoner ble importert fra :en:Module:Ancient_Egypt_kings</title>
		<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Ancient_Egypt_kings&amp;diff=2170&amp;oldid=prev"/>
		<updated>2022-10-04T17:01:03Z</updated>

		<summary type="html">&lt;p&gt;4 revisjoner ble importert fra &lt;a href=&quot;https://en.wikipedia.org/wiki/Module:Ancient_Egypt_kings&quot; class=&quot;extiw&quot; title=&quot;en:Module:Ancient Egypt kings&quot;&gt;en:Module:Ancient_Egypt_kings&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ny side&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{Ancient Egypt kings}}. It converts a year in the Gregorian&lt;br /&gt;
-- calendar to the equivalent year of the ancient Egyptian era organized by pharaohs and kings.&lt;br /&gt;
&lt;br /&gt;
local data = mw.loadData( &amp;#039;Module:Ancient Egypt kings/data&amp;#039; )&lt;br /&gt;
local lang = mw.language.getContentLanguage()&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p._main( inputYear )&lt;br /&gt;
	-- Convert the input to an integer if possible. Return &amp;quot;N/A&amp;quot; if the input could&lt;br /&gt;
	-- not be converted, or if the converted input is too big or too small.&lt;br /&gt;
	inputYear = tonumber( inputYear )&lt;br /&gt;
	if not inputYear or inputYear &amp;gt; tonumber( lang:formatDate( &amp;#039;Y&amp;#039; ) ) then&lt;br /&gt;
		return &amp;quot;&amp;#039;&amp;#039;N/A&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Find the length of the data.&lt;br /&gt;
	-- We need the length of the data so that we can loop through it backwards.&lt;br /&gt;
	-- Normally we can get the length of tables with the # operator, but this&lt;br /&gt;
	-- doesn&amp;#039;t work with mw.loadData, as mw.loadData uses a metatable, and the&lt;br /&gt;
	-- # operator doesn&amp;#039;t work for tables that use metatables.&lt;br /&gt;
	local dataLength = 0&lt;br /&gt;
	for i, t in ipairs( data ) do&lt;br /&gt;
		dataLength = i&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Find the year in the data page and display the output.&lt;br /&gt;
	for i = dataLength, 1, -1 do&lt;br /&gt;
		local t = data[i]&lt;br /&gt;
		if inputYear - 1 &amp;gt;= t.rulerstart and inputYear - 1 &amp;lt;= t.rulerend then&lt;br /&gt;
			-- year of the dynasty, test with = p._main( -495 )&lt;br /&gt;
			-- The input year in the calendar is one after the expected (-775 for the year 776 BC). This is why all values need to be corrected by 1. &lt;br /&gt;
			return string.format(&lt;br /&gt;
				&amp;#039;[[%s]], %d&amp;#039;,&lt;br /&gt;
				t.ruler, inputYear - t.rulerstart&lt;br /&gt;
			)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main( frame )&lt;br /&gt;
	-- If you only want to run this module from another Lua module, you can get&lt;br /&gt;
	-- rid of this function entirely. This function is only used if you want to&lt;br /&gt;
	-- run this individual module from a template.&lt;br /&gt;
	local args = require( &amp;#039;Module:Arguments&amp;#039; ).getArgs( frame, {&lt;br /&gt;
		parentOnly = true&lt;br /&gt;
	} )&lt;br /&gt;
	return p._main( args[ 1 ] )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>nb&gt;Tholme</name></author>
	</entry>
</feed>