
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://intrusivegardening.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AAge_in_years%2C_months_and_days%2Fdoc</id>
	<title>Template:Age in years, months and days/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://intrusivegardening.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AAge_in_years%2C_months_and_days%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://intrusivegardening.org/index.php?title=Template:Age_in_years,_months_and_days/doc&amp;action=history"/>
	<updated>2026-04-07T19:33:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>http://intrusivegardening.org/index.php?title=Template:Age_in_years,_months_and_days/doc&amp;diff=903&amp;oldid=prev</id>
		<title>FluidicYottabyte: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://intrusivegardening.org/index.php?title=Template:Age_in_years,_months_and_days/doc&amp;diff=903&amp;oldid=prev"/>
		<updated>2025-06-09T01:28:02Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:28, 8 June 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>FluidicYottabyte</name></author>
	</entry>
	<entry>
		<id>http://intrusivegardening.org/index.php?title=Template:Age_in_years,_months_and_days/doc&amp;diff=902&amp;oldid=prev</id>
		<title>https://en.wikipedia.org/wiki/&gt;Tom.Reding: /* top */{{High-use}}</title>
		<link rel="alternate" type="text/html" href="http://intrusivegardening.org/index.php?title=Template:Age_in_years,_months_and_days/doc&amp;diff=902&amp;oldid=prev"/>
		<updated>2023-12-26T17:53:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;top: &lt;/span&gt;{{High-use}}&lt;/span&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;
{{High-use}}&lt;br /&gt;
&amp;lt;!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
{{Lua|Module:Age}}&lt;br /&gt;
&lt;br /&gt;
This template returns the number of full years, then surplus months, then surplus days between two specified dates. If the second set of parameters is not included, it will return the number of years, months and days between a specified date and today&amp;#039;s date. The words &amp;quot;year&amp;quot;, &amp;quot;month&amp;quot; and &amp;quot;day&amp;quot; are plural when appropriate.&lt;br /&gt;
&lt;br /&gt;
The years and months are separated by a comma. Since [[MOS:SERIAL|serial commas are optional]] and use varies, this template does not automatically place a comma after the months. If a serial comma is desired, adding {{para|sc|y}} to the template invocation will include one.&lt;br /&gt;
&lt;br /&gt;
See [[Wikipedia:Age calculation templates]] for more information on using this kind of template.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|year= |month= |day= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|yyyy|mm|dd|yyyy2|mm2|dd2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|year=2001|month=1|day=15}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days|year=2001|month=1|day=15}}&amp;quot;&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|2001|01|15|2008|09|05}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days|2001|01|15|2008|09|05}}&amp;quot;&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|2016|8|4|2016|9|5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days|2016|8|4|2016|9|5}}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
This template can handle an ambiguous start date:&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|year=2010|month=9}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days|year=2010|month=9}}&amp;quot;&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|2009|6||2011|2|21}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days|2009|6||2011|2|21}}&amp;quot;&lt;br /&gt;
But it cannot handle an ambiguous end date:&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|2012|11|2|2016|4}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days|2012|11|2|2016|4}}&amp;quot;&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|2012|11|2|2017}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days|2012|11|2|2017}}&amp;quot;&lt;br /&gt;
Since the length of a month varies, the number of days to roll over the number of months varies.&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|2007|3|12|2015|6|11}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days|2007|3|12|2015|6|11}}&amp;quot;&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|2007|3|12|2015|7|11}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days|2007|3|12|2015|7|11}}&amp;quot;&lt;br /&gt;
To add a [[serial comma]] specify {{para|sc|y}}.&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|year=2001|month=1|day=15|sc=y}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days|year=2001|month=1|day=15|sc=y}}&amp;quot;&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|2001|1|15|2008|9|5|sc=y}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days|2001|1|15|2008|9|5|sc=y}}&amp;quot;&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Age in years, months and days|&amp;lt;/nowiki&amp;gt;{{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;14|{{#expr:{{CURRENTYEAR}}-8}}|{{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;45|2006|{{#expr:{{CURRENTYEAR}}-8}}}}}}&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;{{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;14|12|{{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;45|8|{{#ifexpr:{{CURRENTDAY}}&amp;lt;15|{{#expr:{{CURRENTMONTH}}-1}}|{{CURRENTMONTH}}}}}}}}&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;{{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;14|{{#ifexpr:{{CURRENTDAY}}&amp;lt;15|{{#expr:{{CURRENTDAY}}+15}}|{{#expr:{{CURRENTDAY}}-14}}}}|{{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;4|4|{{#ifexpr:{{CURRENTDAY}}&amp;lt;15|{{#expr:{{CURRENTDAY}}+15}}|{{#expr:{{CURRENTDAY}}-14}}}}}}}}&amp;lt;nowiki&amp;gt;|sc=y}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns &amp;quot;{{Age in years, months and days| {{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;14|{{#expr:{{CURRENTYEAR}}-8}}|{{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;45|2006|{{#expr:{{CURRENTYEAR}}-8}}}}}}|{{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;14|12|{{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;45|8|{{#ifexpr:{{CURRENTDAY}}&amp;lt;15|{{#expr:{{CURRENTMONTH}}-1}}|{{CURRENTMONTH}}}}}}}}|{{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;14|{{#ifexpr:{{CURRENTDAY}}&amp;lt;15|{{#expr:{{CURRENTDAY}}+15}}|{{#expr:{{CURRENTDAY}}-14}}}}|{{#ifexpr:{{#time:z|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}&amp;lt;4|4|{{#ifexpr:{{CURRENTDAY}}&amp;lt;15|{{#expr:{{CURRENTDAY}}+15}}|{{#expr:{{CURRENTDAY}}-14}}}}}}}}|sc=y}}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;{&lt;br /&gt;
&amp;quot;description&amp;quot;: &amp;quot;This template returns the number of full years, surplus months, and surplus days between two specified dates. If the second set of parameters is not included, it will return the number of years, months and days between a specified date and today&amp;#039;s date.&amp;quot;,&lt;br /&gt;
&amp;quot;params&amp;quot;: {&lt;br /&gt;
  &amp;quot;1&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;Year (&amp;#039;from&amp;#039; date)&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;The year of the (first) date&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: true,&lt;br /&gt;
    &amp;quot;aliases&amp;quot;: [ &amp;quot;year&amp;quot; ]&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;2&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;Month (&amp;#039;from&amp;#039; date)&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;Number of the month of the (first) date&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: true,&lt;br /&gt;
    &amp;quot;aliases&amp;quot;: [ &amp;quot;month&amp;quot; ]&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;3&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;Day of month (&amp;#039;from&amp;#039; date)&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;The day of the month of the (first) date&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: false,&lt;br /&gt;
    &amp;quot;aliases&amp;quot;: [ &amp;quot;day&amp;quot; ]&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;4&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;Year (&amp;#039;to&amp;#039; date)&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;The year of the &amp;#039;to&amp;#039; date, if required&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
    &amp;quot;default&amp;quot;: &amp;quot;the current year&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: false&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;5&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;Month (&amp;#039;to&amp;#039; date)&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;Number of the month of the &amp;#039;to&amp;#039; date, if required&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
    &amp;quot;default&amp;quot;: &amp;quot;the current month&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: false&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;6&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;Day of month (&amp;#039;to&amp;#039; date)&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;The day of the month of the &amp;#039;to&amp;#039; date, if required&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
    &amp;quot;default&amp;quot;: &amp;quot;the current day&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: false&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;sc&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;Serial comma&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;Enter &amp;#039;y&amp;#039; to turn on the serial comma after the months&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;string/line&amp;quot;,&lt;br /&gt;
    &amp;quot;default&amp;quot;: &amp;quot;none&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: false&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;br /&gt;
}&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Wikipedia:Age calculation templates]]&lt;br /&gt;
* {{tl|User Wikipedian for}}&lt;br /&gt;
* {{tl|User admin since}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Birth, death and age templates |age}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other|&lt;br /&gt;
| &amp;lt;!-- Categories below this line, please; interwikis at Wikidata. --&amp;gt;&lt;br /&gt;
[[Category:Date-computing templates]]&lt;br /&gt;
[[Category:Date mathematics templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>https://en.wikipedia.org/wiki/&gt;Tom.Reding</name></author>
	</entry>
</feed>