<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
	<id>https://wiki.nebeshtar.com/index.php?action=history&amp;feed=atom&amp;title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86%3AIranian_calendar</id>
	<title>پودمان:Iranian calendar - تاریخچهٔ نسخه‌ها</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nebeshtar.com/index.php?action=history&amp;feed=atom&amp;title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86%3AIranian_calendar"/>
	<link rel="alternate" type="text/html" href="https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Iranian_calendar&amp;action=history"/>
	<updated>2026-05-05T16:47:34Z</updated>
	<subtitle>تاریخچهٔ نسخه‌ها برای این صفحه در ویکی</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Iranian_calendar&amp;diff=1020&amp;oldid=prev</id>
		<title>محمد: صفحه‌ای تازه حاوی «-- This module is under development.  -- Useful functions about Iranian calendar to be used in Persian Wikipedia -- Written by Alireza Eskandarpour Shoferi (@AEsShoferi) in Lua -- -- Distributed under the terms of the CC BY-SA 4.0  -- Load necessary modules local library = require(&quot;Module:Iranian calendar/library&quot;) local convertNumber = require(&quot;Module:Numeral converter&quot;).convert local getArgs = require(&quot;Module:Arguments&quot;).getArgs  --...» ایجاد کرد</title>
		<link rel="alternate" type="text/html" href="https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Iranian_calendar&amp;diff=1020&amp;oldid=prev"/>
		<updated>2025-01-24T15:38:56Z</updated>

		<summary type="html">&lt;p&gt;صفحه‌ای تازه حاوی «-- This module is under development.  -- Useful functions about Iranian calendar to be used in Persian Wikipedia -- Written by Alireza Eskandarpour Shoferi (@AEsShoferi) in Lua -- -- Distributed under the terms of the CC BY-SA 4.0  -- Load necessary modules local library = require(&amp;quot;Module:Iranian calendar/library&amp;quot;) local convertNumber = require(&amp;quot;Module:Numeral converter&amp;quot;).convert local getArgs = require(&amp;quot;Module:Arguments&amp;quot;).getArgs  --...» ایجاد کرد&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ تازه&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module is under development.&lt;br /&gt;
&lt;br /&gt;
-- Useful functions about Iranian calendar to be used in Persian Wikipedia&lt;br /&gt;
-- Written by Alireza Eskandarpour Shoferi (@AEsShoferi) in Lua&lt;br /&gt;
--&lt;br /&gt;
-- Distributed under the terms of the CC BY-SA 4.0&lt;br /&gt;
&lt;br /&gt;
-- Load necessary modules&lt;br /&gt;
local library = require(&amp;quot;Module:Iranian calendar/library&amp;quot;)&lt;br /&gt;
local convertNumber = require(&amp;quot;Module:Numeral converter&amp;quot;).convert&lt;br /&gt;
local getArgs = require(&amp;quot;Module:Arguments&amp;quot;).getArgs&lt;br /&gt;
&lt;br /&gt;
-- function form [[Module:Age#L-113]]&lt;br /&gt;
local function stripToNil(text)&lt;br /&gt;
	-- If text is a string, return its trimmed content, or nil if empty.&lt;br /&gt;
	-- Otherwise return text (which may, for example, be nil).&lt;br /&gt;
	if type(text) == &amp;#039;string&amp;#039; then&lt;br /&gt;
		text = mw.ustring.match(text, &amp;#039;(%S.-)%s*$&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.Age(frame)&lt;br /&gt;
	local args = getArgs(frame, {trim=true, removeBlanks=true})&lt;br /&gt;
	-- Converts Persian numbers to English because of arithmetic expressions&lt;br /&gt;
	local birthSet = {year = tonumber(convertNumber(&amp;quot;en&amp;quot;, args[1])), month = tonumber(convertNumber(&amp;quot;en&amp;quot;, args[2])), day = tonumber(convertNumber(&amp;quot;en&amp;quot;, args[3]))}&lt;br /&gt;
	local deathSet = {year = tonumber(convertNumber(&amp;quot;en&amp;quot;, args[4])) or library.getCurrentJalaliYear(), month = tonumber(convertNumber(&amp;quot;en&amp;quot;, args[5])) or library.getCurrentJalaliMonth(), day = tonumber(convertNumber(&amp;quot;en&amp;quot;, args[6])) or library.getCurrentJalaliDay()}&lt;br /&gt;
	&lt;br /&gt;
	if not stripToNil(birthSet.month) and not stripToNil(birthSet.day) then&lt;br /&gt;
		-- If day and month of birth is not provided,&lt;br /&gt;
		-- then calculate the age using only the birth-year&lt;br /&gt;
		-- In this case, month and day of the death are not considered for calculation&lt;br /&gt;
		-- outputs a range; e.g. 54–55&lt;br /&gt;
		return convertNumber(&amp;quot;fa&amp;quot;, (deathSet.year - birthSet.year) - 1) .. &amp;#039;–&amp;#039; .. convertNumber(&amp;quot;fa&amp;quot;, (deathSet.year - birthSet.year))&lt;br /&gt;
	else&lt;br /&gt;
		-- Following expression borrowed from [[:en:Template:Age]]&lt;br /&gt;
		return convertNumber(&amp;quot;fa&amp;quot;, (deathSet.year - birthSet.year) - (((tonumber(deathSet.month) &amp;lt; tonumber(birthSet.month) ) or deathSet.month == birthSet.month and tonumber(deathSet.day) &amp;lt; tonumber(birthSet.day) ) and 1 or 0) )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>محمد</name></author>
	</entry>
</feed>