http://www.psdevwiki.com/ps3/history/Template:Age_as_of_date/doc?feed=atom&Template:Age as of date/doc - Revision history2024-03-29T16:01:53ZRevision history for this page on the wikiMediaWiki 1.39.6http://www.psdevwiki.com/ps3/index.php?title=Template:Age_as_of_date/doc&diff=17738&oldid=prevEuss at 17:12, 14 December 20122012-12-14T17:12:58Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:12, 14 December 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l43">Line 43:</td>
<td colspan="2" class="diff-lineno">Line 43:</td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div><!-- Categories and interwikis go here: --></div></td><td class="diff-marker"></td><td style="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;"><div><!-- Categories and interwikis go here: --></div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>[[Category:Date mathematics templates|{{PAGENAME}}]]</div></td><td class="diff-marker"></td><td style="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;"><div>[[Category:Date mathematics templates|{{PAGENAME}}]]</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div></includeonly></div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div></includeonly><ins style="font-weight: bold; text-decoration: none;">[[Category:Templates]]</ins></div></td></tr>
</table>Eusshttp://www.psdevwiki.com/ps3/index.php?title=Template:Age_as_of_date/doc&diff=17154&oldid=prevEuss: Created page with "{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> == Usage == This template calculates a person's current age based on a known age as..."2012-12-12T20:58:26Z<p>Created page with "{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> == Usage == This template calculates a person's current age based on a known age as..."</p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<!-- Categories and interwikis go at the bottom of this page. --><br />
== Usage ==<br />
This template calculates a person's current age based on a known age as of specified date. This is useful when a reference states a person's age at the time of the reference's publication.<br />
<br />
{{tlx|Age as of date|age|year|month|day}}<br />
<br />
The age, year, and day must be supplied as [[natural number]]s; month can be specified as a natural number as well as by name or abbreviation (e.g. "August" or "Aug"). The [[Gregorian calendar]] is assumed, with no special support provided for [[dual dating]] or the difference between [[Old Style and New Style dates]] .<br />
<br />
If a reference dated July 4, {{#expr: {{CURRENTYEAR}} - 2}} mentions that someone is 50 years old, that person's current age can be rendered using:<br />
<br />
{{tlx|Age as of date|50|{{#expr: {{CURRENTYEAR}} - 2}}|July|4}}<br />
<br />
== Examples ==<br />
{| class="wikitable"<br />
! Template text<br />
! Result<br />
|-<br />
| align=left | <tt><nowiki>{{Age as of date|50|</nowiki>{{#expr: {{CURRENTYEAR}} - 2}}|1|1}}</tt><br />
| align=center | {{Age as of date|50|{{#expr: {{CURRENTYEAR}} - 2}}|1|1}}<br />
|-<br />
| align=left | <tt><nowiki>{{Age as of date|50|</nowiki>{{#expr: {{CURRENTYEAR}} - 2}}|12|31}}</tt><br />
| align=center | {{Age as of date|50|{{#expr: {{CURRENTYEAR}} - 2}}|12|31}}<br />
|-<br />
| align=left | <tt><nowiki>{{Age as of date|50|</nowiki>{{#expr: {{CURRENTYEAR}} - 2}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}</tt><br />
| align=center | {{Age as of date|50|{{#expr: {{CURRENTYEAR}} - 2}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}<br />
|-<br />
| align=left | <tt><nowiki>{{Age as of date|50|</nowiki>{{#expr: {{CURRENTYEAR}} - 2}}|{{CURRENTMONTHABBREV}}|{{CURRENTDAY}}}}</tt><br />
| align=center | {{Age as of date|50|{{#expr: {{CURRENTYEAR}} - 2}}|{{CURRENTMONTHABBREV}}|{{CURRENTDAY}}}}<br />
|-<br />
| align=left | <tt><nowiki>{{Age as of date|50|</nowiki>{{#expr: {{CURRENTYEAR}} - 2}}|{{CURRENTMONTHNAME}}|{{CURRENTDAY}}}}</tt><br />
| align=center | {{Age as of date|50|{{#expr: {{CURRENTYEAR}} - 2}}|{{CURRENTMONTHNAME}}|{{CURRENTDAY}}}}<br />
|}<br />
<br />
== See also ==<br />
* {{tl|Birth based on age as of date}} — uses same calculations for current age, but also includes an approximate year of birth <br />
* {{tl|Age}} — calculates an age based on the number of full years between two specified dates (or a specified date and today's date) <br />
* {{tl|Age nts}} — similar to the above, but will sort correctly in sortable tables<br />
* {{tl|Age in years and days}} — Age in years and days<br />
* {{tl|Age in days}} — Age in days<br />
* [[Wikipedia:Age calculation templates]]<br />
<includeonly><br />
<!-- Categories and interwikis go here: --><br />
[[Category:Date mathematics templates|{{PAGENAME}}]]<br />
</includeonly></div>Euss