Template:DoB: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (rewrote summary)
(migrating from hCard hidden spans (what Wikipedia uses) to Microdata attributes)
Line 1: Line 1:
<includeonly>{{#if:{{{df|}}}|{{#expr:{{{3|{{{day}}}}}}}} {{MONTHNAME|{{{2|{{{month}}}}}}}}|{{MONTHNAME|{{{2|{{{month}}}}}}}} {{#expr:{{{3|{{{day}}}}}}}},}} {{{1|{{{year}}}}}}<span style="display:none">(<span class="bday">{{{1|{{{year}}}}}}-{{padleft:{{{2|{{{month}}}}}}|2|0}}-{{padleft:{{{3|{{{day}}}}}}|2|0}}</span>)</span><span class="noprint"> (age&nbsp;{{age|{{{1|{{{year}}}}}}|{{{2|{{{month}}}}}}|{{{3|{{{day}}}}}}}})</span></includeonly><noinclude>
<includeonly><time itemprop="birthDate" datetime="{{{1|{{{year}}}}}}-{{padleft:{{{2|{{{month}}}}}}|2|0}}-{{padleft:{{{3|{{{day}}}}}}|2|0}}">{{#if:{{{df|}}}|{{#expr:{{{3|{{{day}}}}}}}} {{MONTHNAME|{{{2|{{{month}}}}}}}}|{{MONTHNAME|{{{2|{{{month}}}}}}}} {{#expr:{{{3|{{{day}}}}}}}},}} {{{1|{{{year}}}}}}</time><span class="noprint"> (age&nbsp;{{age|{{{1|{{{year}}}}}}|{{{2|{{{month}}}}}}|{{{3|{{{day}}}}}}}})</span></includeonly><noinclude>
<nowiki>{{DoB|YEAR|MONTH|DAY}}</nowiki>
<nowiki>{{DoB|YEAR|MONTH|DAY}}</nowiki>


Calculates a person's current age when given their birth date. Main use is for {{t|Infobox Smasher}} and userpages. Originally taken from Wikipedia.
Calculates a person's current age when given their birth date. Main use is for {{t|Infobox Smasher}} and userpages. Originally taken from Wikipedia.
</noinclude>
</noinclude>

Revision as of 19:22, July 28, 2016

{{DoB|YEAR|MONTH|DAY}}

Calculates a person's current age when given their birth date. Main use is for {{Infobox Smasher}} and userpages. Originally taken from Wikipedia.