http://www.psdevwiki.com/ps3/history/Template:Birth-date_and_age/doc?feed=atom& Template:Birth-date and age/doc - Revision history 2024-03-28T16:07:21Z Revision history for this page on the wiki MediaWiki 1.39.6 http://www.psdevwiki.com/ps3/index.php?title=Template:Birth-date_and_age/doc&diff=17765&oldid=prev Euss at 17:43, 14 December 2012 2012-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>&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:Birth-date_and_age/doc&diff=17173&oldid=prev Euss: 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 &quot;<a href="/ps3/File:BadSalzdetfurthBadenburgerStr060529.jpg" title="File:BadSalzdetfurthBadenburgerStr060529.jpg">right|80px</a> {{tsh|b-da}} {{Documentation subpage}} &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt; R...&quot;</p> <p><b>New page</b></p><div>[[Image:BadSalzdetfurthBadenburgerStr060529.jpg|right|80px]]<br /> {{tsh|b-da}}<br /> {{Documentation subpage}}<br /> &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;<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 /> : &lt;code&gt;&lt;nowiki&gt;{{Birth-date and age| birth date}}&lt;/nowiki&gt;&lt;/code&gt;<br /> : &lt;code&gt;&lt;nowiki&gt;{{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. }}&lt;/nowiki&gt;&lt;/code&gt;<br /> <br /> ==== Examples ====<br /> {| width=&quot;100%&quot; xclass=&quot;toccolours&quot; style=&quot;margin-top:.5em;border:1px solid #a0a0a0;background-color:#f8f8ff;&quot; &lt;!-- no class formatting other than article space --&gt;<br /> |- style=&quot;text-align:left;&quot; colspan=2<br /> |'''&lt;span style=&quot;font-size:110%;&quot;&gt;Birth-date and age examples &lt;/span&gt;''' ''(colors for emphasis only)'':<br /> |- style=&quot;text-align:left;line-height:1.4em;font-size:87%;&quot;<br /> |style=&quot;white-space:normal;&quot;|'''Month first format: Sample below displays &lt;span style=&quot;color:#038945;&quot;&gt;{{Birth-date and age|April 12, 1941}}&lt;/span&gt;, with invisible microformat date: '''''1941-04-12''&lt;br /&gt;<br /> &lt;code&gt;&lt;nowiki&gt;{{birth-date and age|&lt;/nowiki&gt;&lt;nowiki&gt;April 12, 1941&lt;/nowiki&gt;}}&lt;br /&gt;<br /> |- style=&quot;text-align:left;line-height:1.4em;font-size:87%;&quot;<br /> |style=&quot;white-space:normal;&quot;|'''Day first format: Sample below displays &lt;span style=&quot;color:#038945;&quot;&gt;{{Birth-date and age| 12 April 1941}}&lt;/span&gt;, with invisible microformat date: '''''1941-04-12''&lt;br /&gt;<br /> &lt;code&gt;&lt;nowiki&gt;{{Birth-date and age| 12 April 1941 &lt;/nowiki&gt;}}&lt;br /&gt;<br /> |- style=&quot;text-align:left;line-height:1.4em;font-size:87%;&quot;<br /> |style=&quot;white-space:normal;&quot;|'''Year only, year and month only: Sample below displays &lt;span style=&quot;color:#038945;&quot;&gt;{{Birth-date and age|1941}}&lt;/span&gt;, with invisible microformat date: '''''1941''&lt;br /&gt;<br /> &lt;code&gt;&lt;nowiki&gt;{{Birth-date and age | 1941 &lt;/nowiki&gt;}}&lt;br /&gt;<br /> |- style=&quot;text-align:left;line-height:1.4em;font-size:87%;&quot;<br /> |style=&quot;white-space:normal;&quot;|'''Demo of ISO date, as well as alternate displays. Sample below displays &lt;span style=&quot;color:#038945;&quot;&gt;{{Birth-date and age| 1941-04-12 |Twelfth of April, 1941}}&lt;/span&gt;, with invisible microformat date: '''''1941-04-12''&lt;br /&gt;<br /> &lt;code&gt;&lt;nowiki&gt;{{Birth-date and age| 1941-04-12 |&lt;/nowiki&gt; Twelfth of April, 1941}}&lt;br /&gt;<br /> |}<br /> <br /> === Full list of Parameters ===<br /> : &lt;code&gt;&lt;nowiki&gt;{{birth-date and age|&lt;/nowiki&gt;&lt;/code&gt;''birth date''&lt;tt&gt;|''additional parameters''}}&lt;/tt&gt;<br /> <br /> ===Parameters===<br /> {| class=&quot;wikitable&quot; style=&quot;font-size:95%;&quot;<br /> !colspan=&quot;3&quot; style=&quot;padding-left:64px;text-align:left;&quot;| Parameter !! Default<br /> |-<br /> |width=&quot;60&quot; style=&quot;vertical-align:top;&quot;| (required) ||width=&quot;120&quot; style=&quot;vertical-align:top;&quot; align=&quot;center&quot; | 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=&quot;center&quot; style=&quot;vertical-align:top;&quot;| &amp;ndash;<br /> |-<br /> |width=&quot;60&quot; style=&quot;vertical-align:top;&quot;| (optional) ||width=&quot;120&quot; style=&quot;vertical-align:top;&quot; align=&quot;center&quot; | 2 || The birth date to display. This may include links or templates, or any combination of them, and overrides parameter 1. || align=&quot;center&quot; style=&quot;vertical-align:top;&quot;| parm 1<br /> |-<br /> |style=&quot;vertical-align:top;&quot;| (optional) ||style=&quot;vertical-align:top;&quot; align=&quot;center&quot;| bce || If birth date is BC, set to &quot;''b''&quot;. ||align=&quot;center&quot; style=&quot;vertical-align:top;&quot;| &amp;ndash;<br /> |-<br /> |style=&quot;vertical-align:top;&quot;| (optional) ||style=&quot;vertical-align:top;&quot; align=&quot;center&quot;| 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=&quot;center&quot; style=&quot;vertical-align:top;&quot;| parm 1<br /> |-<br /> |style=&quot;vertical-align:top;&quot;| (optional) ||style=&quot;vertical-align:top;&quot; align=&quot;center&quot;| dt || This value if present is the [[ISO8601]] value emitted to indicate microformat birth date. It overrides any calculated value. ||align=&quot;center&quot; style=&quot;vertical-align:top;&quot;| &amp;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 /> &lt;includeonly&gt;<br /> &lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&gt;<br /> [[Category:Date mathematics templates|Birth-date and age]]<br /> [[Category:Templates generating microformat date and age|{{BASEPAGENAME}}]]<br /> &lt;/includeonly&gt;</div> Euss