<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AIsLeapYear%2Fdoc</id>
	<title>Template:IsLeapYear/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AIsLeapYear%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:IsLeapYear/doc&amp;action=history"/>
	<updated>2026-05-25T06:54:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:IsLeapYear/doc&amp;diff=38403&amp;oldid=prev</id>
		<title>imported&gt;Gonnym at 11:03, 29 January 2022</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:IsLeapYear/doc&amp;diff=38403&amp;oldid=prev"/>
		<updated>2022-01-29T11:03:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
=== Usage ===&lt;br /&gt;
{{shortcut|template:ly}}&lt;br /&gt;
: {{Tlx|IsLeapYear|&amp;#039;&amp;#039;year&amp;#039;&amp;#039;}}&lt;br /&gt;
: &amp;#039;&amp;#039;year&amp;#039;&amp;#039; defaults to {{tld|CURRENTYEAR|}} ({{CURRENTYEAR}}). It must be specified in the Gregorian calendar, extended to all epochs using linear year numbering: use the [[proleptic Gregorian calendar]] in Christian Era before the change, and the astronomical year convention (using negative numbers, and year 0) in all years BC before the Christian era (there&amp;#039;s a difference of 1 in absolute value).&lt;br /&gt;
===Parameters===&lt;br /&gt;
* &amp;#039;&amp;#039;Unnamed parameter&amp;#039;&amp;#039; The year to calculate with (default: {{CURRENTYEAR}})&lt;br /&gt;
* {{para|yes}} What to output if it is a leap year (default : 1)&lt;br /&gt;
* {{para|no}} What to output if it isn&amp;#039;t a leap year (default: 0)&lt;br /&gt;
=== Formula ===&lt;br /&gt;
The template currently uses Wikimedia function time (#time). It is the same as if 4 mod year = 0  and 100 mod year ≠ 0, then not a leap year, unless 400 mod year = 0, then it is a leap year.&lt;br /&gt;
&lt;br /&gt;
=== Sanity check ===&lt;br /&gt;
* {{tld|IsLeapYear|2000|_show_result=y}}: 2000 AD is &amp;#039;&amp;#039;effectively&amp;#039;&amp;#039; a leap year &amp;#039;&amp;#039;(in both the Julian and Gregorian calendars)&amp;#039;&amp;#039;.&lt;br /&gt;
* {{tld|IsLeapYear|502*4-8|_show_result=y}}: 2000 AD is &amp;#039;&amp;#039;effectively&amp;#039;&amp;#039; a leap year &amp;#039;&amp;#039;(in both the Julian and Gregorian calendars)&amp;#039;&amp;#039;.&lt;br /&gt;
* {{tld|IsLeapYear|2001|_show_result=y}}: 2001 AD is not a leap year.&lt;br /&gt;
* {{tld|IsLeapYear|2004|_show_result=y}}: 2004 AD is a leap year.&lt;br /&gt;
* {{tld|IsLeapYear|2005|_show_result=y}}: 2005 AD is not a leap year.&lt;br /&gt;
* {{tld|IsLeapYear|2007|_show_result=y}}: 2007 AD is not a leap year.&lt;br /&gt;
* {{tld|IsLeapYear|2008|_show_result=y}}: 2008 AD is a leap year.&lt;br /&gt;
* {{tld|IsLeapYear|2009|_show_result=y}}: 2009 AD is not a leap year.&lt;br /&gt;
* {{tld|IsLeapYear|2100|_show_result=y}}: 2100 AD is not a leap year in the Gregorian calendar &amp;#039;&amp;#039;(but not in the Julian calendar)&amp;#039;&amp;#039;.&lt;br /&gt;
* {{tld|IsLeapYear|2400|_show_result=y}}: 2400 AD is &amp;#039;&amp;#039;effectively&amp;#039;&amp;#039; a leap year &amp;#039;&amp;#039;(in both the Julian and Gregorian calendars)&amp;#039;&amp;#039;.&lt;br /&gt;
* {{tld|IsLeapYear|1900|_show_result=y}}: 1900 AD is not a leap year in the Gregorian calendar &amp;#039;&amp;#039;(but not in the Julian calendar)&amp;#039;&amp;#039;.&lt;br /&gt;
* {{tld|IsLeapYear|1800|_show_result=y}}: 1800 AD is not a leap year in the Gregorian calendar &amp;#039;&amp;#039;(but not in the Julian calendar)&amp;#039;&amp;#039;.&lt;br /&gt;
* {{tld|IsLeapYear|1700|_show_result=y}}: 1700 AD is not a leap year in the Gregorian calendar &amp;#039;&amp;#039;(but not in the Julian calendar)&amp;#039;&amp;#039;.&lt;br /&gt;
* {{tld|IsLeapYear|1600|_show_result=y}}: 1600 AD is &amp;#039;&amp;#039;effectively&amp;#039;&amp;#039; a leap year &amp;#039;&amp;#039;(in both the Julian and Gregorian calendars)&amp;#039;&amp;#039;.&lt;br /&gt;
* {{tld|IsLeapYear|1500|_show_result=y}}: 1500 AD is not a leap year in the [[proleptic Gregorian calendar]] &amp;#039;&amp;#039;(but is leap in the actual Julian calendar)&amp;#039;&amp;#039;.&lt;br /&gt;
* {{tld|IsLeapYear|0}}: 1 BC is a leap year in the astronomical calendar &amp;#039;&amp;#039;(mostly pointless for actual calendars of such epoch, but correct in the astronomical calendar where it is year 0)&amp;#039;&amp;#039;.&lt;br /&gt;
* {{tld|IsLeapYear|-100|_show_result=y}}: 101 BC is not a leap year in the astronomical calendar &amp;#039;&amp;#039;(mostly pointless for actual calendars of such epoch, but correct in the astronomical calendar where it is year -100)&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Results for fractions like {{tld|IsLeapYear|2000.9|_show_result=y}} are rounded down (floor).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- ADD CATEGORIES BELOW THIS LINE --&amp;gt;&lt;br /&gt;
[[Category:Date mathematics templates|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ADD INTERWIKIS BELOW THIS LINE --&amp;gt;&lt;br /&gt;
[[ja:Template:Is-leap-year]]&lt;br /&gt;
[[ur:سانچہ:IsLeapYear]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Gonnym</name></author>
	</entry>
</feed>