<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="hr">
	<id>https://enciklopedija.cc/index.php?action=history&amp;feed=atom&amp;title=Modul%3ANadnevak</id>
	<title>Modul:Nadnevak - Povijest promjena</title>
	<link rel="self" type="application/atom+xml" href="https://enciklopedija.cc/index.php?action=history&amp;feed=atom&amp;title=Modul%3ANadnevak"/>
	<link rel="alternate" type="text/html" href="https://enciklopedija.cc/index.php?title=Modul:Nadnevak&amp;action=history"/>
	<updated>2026-08-06T16:14:23Z</updated>
	<subtitle>Povijest promjena ove stranice na wikiju</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://enciklopedija.cc/index.php?title=Modul:Nadnevak&amp;diff=635659&amp;oldid=prev</id>
		<title>Suradnik10 u (test) 19:10, 19. prosinac 2025.</title>
		<link rel="alternate" type="text/html" href="https://enciklopedija.cc/index.php?title=Modul:Nadnevak&amp;diff=635659&amp;oldid=prev"/>
		<updated>2025-12-19T19:10:48Z</updated>

		<summary type="html">&lt;p&gt;&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;hr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←Starija inačica&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Inačica od 19. prosinac 2025. u 19:10&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot;&gt;Redak 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Redak 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local function formatDate(day, month, year, link)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local function formatDate(day, month, year, link)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if not year then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if not year then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         return &#039;&amp;lt;span class=&quot;error&quot;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Greška&lt;/del&gt;: Nije unesena godina&amp;lt;/span&amp;gt;[[Kategorija:Stranice koje koriste predložak &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Datum &lt;/del&gt;s nevažećim &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;datumom&lt;/del&gt;]]&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         return &#039;&amp;lt;span class=&quot;error&quot;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Grješka&lt;/ins&gt;: Nije unesena godina&amp;lt;/span&amp;gt;[[Kategorija:Stranice koje koriste predložak &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Objavljeno &lt;/ins&gt;s nevažećim &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nadnevkom&lt;/ins&gt;]]&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     year = tostring(year):gsub(&amp;#039;%.&amp;#039;, &amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     year = tostring(year):gsub(&amp;#039;%.&amp;#039;, &amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if tonumber(year) and #year &amp;gt; 4 then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if tonumber(year) and #year &amp;gt; 4 then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         return &#039;&amp;lt;span class=&quot;error&quot;&amp;gt;Greška: Nije unesen važeći &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;datum&lt;/del&gt;&amp;lt;/span&amp;gt;[[Kategorija:Stranice koje koriste predložak &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Datum &lt;/del&gt;s nevažećim &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;datumom&lt;/del&gt;]]&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         return &#039;&amp;lt;span class=&quot;error&quot;&amp;gt;Greška: Nije unesen važeći &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nadnevak&lt;/ins&gt;&amp;lt;/span&amp;gt;[[Kategorija:Stranice koje koriste predložak &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Objavljeno &lt;/ins&gt;s nevažećim &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nadnevkom&lt;/ins&gt;]]&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot;&gt;Redak 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Redak 38:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if (d and d &amp;gt; 31) or (m and m &amp;gt; 12) or not isValidDate(d, m, y) then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if (d and d &amp;gt; 31) or (m and m &amp;gt; 12) or not isValidDate(d, m, y) then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         return &#039;&amp;lt;span class=&quot;error&quot;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Greška&lt;/del&gt;: Nije unesen važeći &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;datum&lt;/del&gt;&amp;lt;/span&amp;gt;[[Kategorija:Stranice koje koriste predložak Datum s nevažećim datumom]]&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         return &#039;&amp;lt;span class=&quot;error&quot;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Grješka&lt;/ins&gt;: Nije unesen važeći &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nadnevak&lt;/ins&gt;&amp;lt;/span&amp;gt;[[Kategorija:Stranice koje koriste predložak Datum s nevažećim datumom]]&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Suradnik10</name></author>
	</entry>
	<entry>
		<id>https://enciklopedija.cc/index.php?title=Modul:Nadnevak&amp;diff=635649&amp;oldid=prev</id>
		<title>Suradnik10: preuzeto s hr.wikipedije</title>
		<link rel="alternate" type="text/html" href="https://enciklopedija.cc/index.php?title=Modul:Nadnevak&amp;diff=635649&amp;oldid=prev"/>
		<updated>2025-12-19T18:56:04Z</updated>

		<summary type="html">&lt;p&gt;preuzeto s hr.wikipedije&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nova stranica&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
local mjeseciGen = {&lt;br /&gt;
    &amp;#039;siječnja&amp;#039;, &amp;#039;veljače&amp;#039;, &amp;#039;ožujka&amp;#039;, &amp;#039;travnja&amp;#039;, &amp;#039;svibnja&amp;#039;, &amp;#039;lipnja&amp;#039;,&lt;br /&gt;
    &amp;#039;srpnja&amp;#039;, &amp;#039;kolovoza&amp;#039;, &amp;#039;rujna&amp;#039;, &amp;#039;listopada&amp;#039;, &amp;#039;studenoga&amp;#039;, &amp;#039;prosinca&amp;#039;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local mjeseciNom = {&lt;br /&gt;
    &amp;#039;siječanj&amp;#039;, &amp;#039;veljača&amp;#039;, &amp;#039;ožujak&amp;#039;, &amp;#039;travanj&amp;#039;, &amp;#039;svibanj&amp;#039;, &amp;#039;lipanj&amp;#039;,&lt;br /&gt;
    &amp;#039;srpanj&amp;#039;, &amp;#039;kolovoz&amp;#039;, &amp;#039;rujan&amp;#039;, &amp;#039;listopad&amp;#039;, &amp;#039;studeni&amp;#039;, &amp;#039;prosinac&amp;#039;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local function linkify(text)&lt;br /&gt;
    return &amp;#039;[[&amp;#039; .. text .. &amp;#039;]]&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function isValidDate(d, m, y)&lt;br /&gt;
    if not d or not m or not y then return true end&lt;br /&gt;
    if d &amp;gt; 31 or m &amp;gt; 12 or y &amp;gt; 9999 then return false end&lt;br /&gt;
    local test = os.time{year=y, month=m, day=d}&lt;br /&gt;
    local actual = os.date(&amp;#039;*t&amp;#039;, test)&lt;br /&gt;
    return actual.day == d and actual.month == m and actual.year == y&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function formatDate(day, month, year, link)&lt;br /&gt;
    if not year then&lt;br /&gt;
        return &amp;#039;&amp;lt;span class=&amp;quot;error&amp;quot;&amp;gt;Greška: Nije unesena godina&amp;lt;/span&amp;gt;[[Kategorija:Stranice koje koriste predložak Datum s nevažećim datumom]]&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    year = tostring(year):gsub(&amp;#039;%.&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
    if tonumber(year) and #year &amp;gt; 4 then&lt;br /&gt;
        return &amp;#039;&amp;lt;span class=&amp;quot;error&amp;quot;&amp;gt;Greška: Nije unesen važeći datum&amp;lt;/span&amp;gt;[[Kategorija:Stranice koje koriste predložak Datum s nevažećim datumom]]&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local d = tonumber(day)&lt;br /&gt;
    local m = tonumber(month)&lt;br /&gt;
    local y = tonumber(year)&lt;br /&gt;
&lt;br /&gt;
    if (d and d &amp;gt; 31) or (m and m &amp;gt; 12) or not isValidDate(d, m, y) then&lt;br /&gt;
        return &amp;#039;&amp;lt;span class=&amp;quot;error&amp;quot;&amp;gt;Greška: Nije unesen važeći datum&amp;lt;/span&amp;gt;[[Kategorija:Stranice koje koriste predložak Datum s nevažećim datumom]]&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local yText = link == &amp;#039;da&amp;#039; and linkify(y .. &amp;#039;.&amp;#039;) or y .. &amp;#039;.&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    if d and m then&lt;br /&gt;
        local mText = mjeseciGen[m]&lt;br /&gt;
        local dm = d .. &amp;#039;. &amp;#039; .. mText&lt;br /&gt;
        return (link == &amp;#039;da&amp;#039; and linkify(dm) or dm) .. &amp;#039; &amp;#039; .. yText&lt;br /&gt;
    elseif m then&lt;br /&gt;
        local mText = mjeseciNom[m]&lt;br /&gt;
        return (link == &amp;#039;da&amp;#039; and linkify(mText) or mText) .. &amp;#039; &amp;#039; .. yText&lt;br /&gt;
    else&lt;br /&gt;
        return yText&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function microformat(day, month, year, isFinale)&lt;br /&gt;
    if not year then return &amp;#039;&amp;#039; end&lt;br /&gt;
    local d = tonumber(day)&lt;br /&gt;
    local m = tonumber(month)&lt;br /&gt;
    local y = tonumber(year)&lt;br /&gt;
&lt;br /&gt;
    local iso&lt;br /&gt;
    if d and m then&lt;br /&gt;
        iso = string.format(&amp;#039;%04d-%02d-%02d&amp;#039;, y, m, d)&lt;br /&gt;
    elseif m then&lt;br /&gt;
        iso = string.format(&amp;#039;%04d-%02d&amp;#039;, y, m)&lt;br /&gt;
    else&lt;br /&gt;
        iso = string.format(&amp;#039;%04d&amp;#039;, y)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local class = isFinale and &amp;#039;dtend&amp;#039; or &amp;#039;dtstart&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    return string.format(&lt;br /&gt;
        &amp;#039;&amp;lt;span class=&amp;quot;bday %s published updated itvstart&amp;quot; style=&amp;quot;display:none;&amp;quot; datetime=&amp;quot;%s&amp;quot;&amp;gt;&amp;lt;span&amp;gt;%s&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;#039;,&lt;br /&gt;
        class, iso, iso&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function callTimeAgo(day, month, year, frame)&lt;br /&gt;
    if not year then return &amp;#039;&amp;#039; end&lt;br /&gt;
    local d = tonumber(day) or 1&lt;br /&gt;
    local m = tonumber(month) or 1&lt;br /&gt;
    local y = tonumber(year)&lt;br /&gt;
&lt;br /&gt;
    local dateString = string.format(&amp;#039;%04d-%02d-%02d&amp;#039;, y, m, d)&lt;br /&gt;
    return frame:preprocess(&amp;#039;{{time ago|&amp;#039; .. dateString .. &amp;#039;|min_magnitude=months}}&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._render(frame, isFinale)&lt;br /&gt;
    local args = frame:getParent().args&lt;br /&gt;
    local day, month, year&lt;br /&gt;
    local link, dodaj&lt;br /&gt;
&lt;br /&gt;
    local nums = {}&lt;br /&gt;
    for i, v in ipairs(args) do&lt;br /&gt;
        if v and v:match(&amp;#039;^%d+$&amp;#039;) then&lt;br /&gt;
            table.insert(nums, v)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
for k, v in pairs(args) do&lt;br /&gt;
    local kLower = mw.ustring.lower(tostring(k or &amp;#039;&amp;#039;))&lt;br /&gt;
    local vLower = mw.ustring.lower(tostring(v or &amp;#039;&amp;#039;))&lt;br /&gt;
    if kLower == &amp;#039;link&amp;#039; or kLower == &amp;#039;links&amp;#039; or vLower == &amp;#039;link&amp;#039; or vLower == &amp;#039;links&amp;#039; or vLower == &amp;#039;l&amp;#039; or vLower == &amp;#039;l=d&amp;#039; or vLower == &amp;#039;link=da&amp;#039; then&lt;br /&gt;
        link = &amp;#039;da&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
    if kLower == &amp;#039;prije&amp;#039; or vLower == &amp;#039;prije&amp;#039; or vLower == &amp;#039;p&amp;#039; or vLower == &amp;#039;dodaj=prije&amp;#039; or vLower == &amp;#039;prije=da&amp;#039; then&lt;br /&gt;
        dodaj = &amp;#039;prije&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
    -- Detect year-first flipped format&lt;br /&gt;
    if tonumber(args[1]) and args[1]:match(&amp;#039;^%d%d%d%d$&amp;#039;) then&lt;br /&gt;
        year = args[1]&lt;br /&gt;
        month = args[2]&lt;br /&gt;
        day = args[3]&lt;br /&gt;
    else&lt;br /&gt;
        -- Find year anywhere&lt;br /&gt;
        for _, v in ipairs(args) do&lt;br /&gt;
            if v and v:match(&amp;#039;^%d%d%d%d$&amp;#039;) then&lt;br /&gt;
                year = v&lt;br /&gt;
                break&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        -- Assign day/month from remaining numeric values&lt;br /&gt;
        local filtered = {}&lt;br /&gt;
        for _, v in ipairs(args) do&lt;br /&gt;
            if v and v:match(&amp;#039;^%d+$&amp;#039;) and v ~= year then&lt;br /&gt;
                table.insert(filtered, v)&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        if #filtered == 1 and year then&lt;br /&gt;
            day = nil&lt;br /&gt;
            month = filtered[1]&lt;br /&gt;
        else&lt;br /&gt;
            day = filtered[1]&lt;br /&gt;
            month = filtered[2]&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if day then day = tostring(tonumber(day)) end&lt;br /&gt;
    if month then month = tostring(tonumber(month)) end&lt;br /&gt;
&lt;br /&gt;
    local dateText = formatDate(day, month, year, link)&lt;br /&gt;
    if dateText:match(&amp;#039;Greška:&amp;#039;) then&lt;br /&gt;
        return dateText&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local micro = microformat(day, month, year, isFinale)&lt;br /&gt;
    local ago = dodaj == &amp;#039;prije&amp;#039; and callTimeAgo(day, month, year, frame) or &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    return micro .. dateText .. (ago ~= &amp;#039;&amp;#039; and &amp;#039; (&amp;#039; .. ago .. &amp;#039;)&amp;#039; or &amp;#039;&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    return p._render(frame, false)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.finale(frame)&lt;br /&gt;
    return p._render(frame, true)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Suradnik10</name></author>
	</entry>
</feed>