http://www.psdevwiki.com/ps3/history/Template:Birth-date_and_age/doc?feed=atom&Template:Birth-date and age/doc - Revision history2024-03-28T16:07:21ZRevision history for this page on the wikiMediaWiki 1.39.6http://www.psdevwiki.com/ps3/index.php?title=Template:Birth-date_and_age/doc&diff=17765&oldid=prevEuss at 17:43, 14 December 20122012-12-14T17:43:10Z<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:43, 14 December 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l62">Line 62:</td>
<td colspan="2" class="diff-lineno">Line 62:</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|Birth-date and age]]</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|Birth-date and age]]</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:Templates generating microformat date and age|{{BASEPAGENAME}}]]</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:Templates generating microformat date and age|{{BASEPAGENAME}}]]</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:Birth-date_and_age/doc&diff=17173&oldid=prevEuss: Created page with "80px {{tsh|b-da}} {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> R..."2012-12-12T21:24:14Z<p>Created page with "<a href="/ps3/File:BadSalzdetfurthBadenburgerStr060529.jpg" title="File:BadSalzdetfurthBadenburgerStr060529.jpg">right|80px</a> {{tsh|b-da}} {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> R..."</p>
<p><b>New page</b></p><div>[[Image:BadSalzdetfurthBadenburgerStr060529.jpg|right|80px]]<br />
{{tsh|b-da}}<br />
{{Documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
<br />
Returns a person's date of birth and age.<br />
<br />
Besides calculating the age of the person, the benefit of using this template, is to allow for the inclusion of hidden [[metadata]] to be used, indexed or searched by software tools.<br />
<br />
=== Typical Usage ===<br />
<br />
; Format:<br />
: <code><nowiki>{{Birth-date and age| birth date}}</nowiki></code><br />
: <code><nowiki>{{Birth-date and age| birth date | wikitext to display in place of 'birth date'. Like the right hand parameter in a wikilink, this could be alternate text, links, templates etc. }}</nowiki></code><br />
<br />
==== Examples ====<br />
{| width="100%" xclass="toccolours" style="margin-top:.5em;border:1px solid #a0a0a0;background-color:#f8f8ff;" <!-- no class formatting other than article space --><br />
|- style="text-align:left;" colspan=2<br />
|'''<span style="font-size:110%;">Birth-date and age examples </span>''' ''(colors for emphasis only)'':<br />
|- style="text-align:left;line-height:1.4em;font-size:87%;"<br />
|style="white-space:normal;"|'''Month first format: Sample below displays <span style="color:#038945;">{{Birth-date and age|April 12, 1941}}</span>, with invisible microformat date: '''''1941-04-12''<br /><br />
<code><nowiki>{{birth-date and age|</nowiki><nowiki>April 12, 1941</nowiki>}}<br /><br />
|- style="text-align:left;line-height:1.4em;font-size:87%;"<br />
|style="white-space:normal;"|'''Day first format: Sample below displays <span style="color:#038945;">{{Birth-date and age| 12 April 1941}}</span>, with invisible microformat date: '''''1941-04-12''<br /><br />
<code><nowiki>{{Birth-date and age| 12 April 1941 </nowiki>}}<br /><br />
|- style="text-align:left;line-height:1.4em;font-size:87%;"<br />
|style="white-space:normal;"|'''Year only, year and month only: Sample below displays <span style="color:#038945;">{{Birth-date and age|1941}}</span>, with invisible microformat date: '''''1941''<br /><br />
<code><nowiki>{{Birth-date and age | 1941 </nowiki>}}<br /><br />
|- style="text-align:left;line-height:1.4em;font-size:87%;"<br />
|style="white-space:normal;"|'''Demo of ISO date, as well as alternate displays. Sample below displays <span style="color:#038945;">{{Birth-date and age| 1941-04-12 |Twelfth of April, 1941}}</span>, with invisible microformat date: '''''1941-04-12''<br /><br />
<code><nowiki>{{Birth-date and age| 1941-04-12 |</nowiki> Twelfth of April, 1941}}<br /><br />
|}<br />
<br />
=== Full list of Parameters ===<br />
: <code><nowiki>{{birth-date and age|</nowiki></code>''birth date''<tt>|''additional parameters''}}</tt><br />
<br />
===Parameters===<br />
{| class="wikitable" style="font-size:95%;"<br />
!colspan="3" style="padding-left:64px;text-align:left;"| Parameter !! Default<br />
|-<br />
|width="60" style="vertical-align:top;"| (required) ||width="120" style="vertical-align:top;" align="center" | 1 || Birth date. May be year only, year and month, year month and day, expressed in natural formats: eg: 24 August 1953, 1955-08-25, Sunday, December 7, 1941. If parameter three is not specified, the birth date is displayed in exactly this format. This value as well as parameter 2 may not include links. If links or templates that do not evaluate as recognizable dates are desired, use parameter 2. || align="center" style="vertical-align:top;"| &ndash;<br />
|-<br />
|width="60" style="vertical-align:top;"| (optional) ||width="120" style="vertical-align:top;" align="center" | 2 || The birth date to display. This may include links or templates, or any combination of them, and overrides parameter 1. || align="center" style="vertical-align:top;"| parm 1<br />
|-<br />
|style="vertical-align:top;"| (optional) ||style="vertical-align:top;" align="center"| bce || If birth date is BC, set to "''b''". ||align="center" style="vertical-align:top;"| &ndash;<br />
|-<br />
|style="vertical-align:top;"| (optional) ||style="vertical-align:top;" align="center"| gregorian || If Julian date is used, this parameter is required. The date provided is used for emitting the correct microformat translation of the birth date. ||align="center" style="vertical-align:top;"| parm 1<br />
|-<br />
|style="vertical-align:top;"| (optional) ||style="vertical-align:top;" align="center"| dt || This value if present is the [[ISO8601]] value emitted to indicate microformat birth date. It overrides any calculated value. ||align="center" style="vertical-align:top;"| &ndash;<br />
|}<br />
<br />
=== Interaction side-effects with other templates ===<br />
<br />
'''Note:''' Do not use this template inside of the [[WP:PERSONDATA|Persondata]] template as it can interfere with data extraction.<br />
<br />
=== See also ===<br />
<br />
*[[Wikipedia:Age calculation templates]]<br />
{{Birth, death and age templates}}<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
[[Category:Date mathematics templates|Birth-date and age]]<br />
[[Category:Templates generating microformat date and age|{{BASEPAGENAME}}]]<br />
</includeonly></div>Euss