http://www.psdevwiki.com/ps3/history/Template:Age_as_of_date/doc?feed=atom& Template:Age as of date/doc - Revision history 2024-03-29T16:01:53Z Revision history for this page on the wiki MediaWiki 1.39.6 http://www.psdevwiki.com/ps3/index.php?title=Template:Age_as_of_date/doc&diff=17738&oldid=prev Euss at 17:12, 14 December 2012 2012-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>&lt;!-- Categories and interwikis go here: --&gt;</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>&lt;!-- Categories and interwikis go here: --&gt;</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>&lt;/includeonly&gt;</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>&lt;/includeonly&gt;<ins style="font-weight: bold; text-decoration: none;">[[Category:Templates]]</ins></div></td></tr> </table> Euss http://www.psdevwiki.com/ps3/index.php?title=Template:Age_as_of_date/doc&diff=17154&oldid=prev Euss: 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 &quot;{{Documentation subpage}} &lt;!-- Categories and interwikis go at the bottom of this page. --&gt; == Usage == This template calculates a person&#039;s current age based on a known age as...&quot;</p> <p><b>New page</b></p><div>{{Documentation subpage}}<br /> &lt;!-- Categories and interwikis go at the bottom of this page. --&gt;<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. &quot;August&quot; or &quot;Aug&quot;). 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=&quot;wikitable&quot;<br /> ! Template text<br /> ! Result<br /> |-<br /> | align=left | &lt;tt&gt;&lt;nowiki&gt;{{Age as of date|50|&lt;/nowiki&gt;{{#expr: {{CURRENTYEAR}} - 2}}|1|1}}&lt;/tt&gt;<br /> | align=center | {{Age as of date|50|{{#expr: {{CURRENTYEAR}} - 2}}|1|1}}<br /> |-<br /> | align=left | &lt;tt&gt;&lt;nowiki&gt;{{Age as of date|50|&lt;/nowiki&gt;{{#expr: {{CURRENTYEAR}} - 2}}|12|31}}&lt;/tt&gt;<br /> | align=center | {{Age as of date|50|{{#expr: {{CURRENTYEAR}} - 2}}|12|31}}<br /> |-<br /> | align=left | &lt;tt&gt;&lt;nowiki&gt;{{Age as of date|50|&lt;/nowiki&gt;{{#expr: {{CURRENTYEAR}} - 2}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}&lt;/tt&gt;<br /> | align=center | {{Age as of date|50|{{#expr: {{CURRENTYEAR}} - 2}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}<br /> |-<br /> | align=left | &lt;tt&gt;&lt;nowiki&gt;{{Age as of date|50|&lt;/nowiki&gt;{{#expr: {{CURRENTYEAR}} - 2}}|{{CURRENTMONTHABBREV}}|{{CURRENTDAY}}}}&lt;/tt&gt;<br /> | align=center | {{Age as of date|50|{{#expr: {{CURRENTYEAR}} - 2}}|{{CURRENTMONTHABBREV}}|{{CURRENTDAY}}}}<br /> |-<br /> | align=left | &lt;tt&gt;&lt;nowiki&gt;{{Age as of date|50|&lt;/nowiki&gt;{{#expr: {{CURRENTYEAR}} - 2}}|{{CURRENTMONTHNAME}}|{{CURRENTDAY}}}}&lt;/tt&gt;<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 /> &lt;includeonly&gt;<br /> &lt;!-- Categories and interwikis go here: --&gt;<br /> [[Category:Date mathematics templates|{{PAGENAME}}]]<br /> &lt;/includeonly&gt;</div> Euss