Template:IsLeapYear


 * Usage&#58;
 * year defaults to.
 * year defaults to.


 * Formula&#58;
 * Use {&#123;subst:&#125;} to get this code ready for optional substitution into another template.
 * Use {&#123;subst:&#125;} to get this code ready for optional substitution into another template.


 * Sanity check&#58;
 * , 2007 is no leap year.
 * , 2008 is a leap year.
 * , 2100 is no leap year.
 * , 2400 is a leap year.
 * , proleptic Gregorian calendar.
 * for 101 BC (mostly pointless).
 * , guess why.

Results for fractions like are unspecified, even if it apparently gives an "expected" result at the moment this might change without notice.