Template:DoB: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
No edit summary
mNo edit summary
 
Line 1: Line 1:
<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"> ({{#if:{{{4|}}}|aged {{{4}}}|age {{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" style="white-space:nowrap">({{#if:{{{4|}}}|aged {{{4}}}|age {{age|{{{1|{{{year}}}}}}|{{{2|{{{month}}}}}}|{{{3|{{{day}}}}}}}}}})</span></includeonly><noinclude>
<nowiki>{{DoB|YEAR|MONTH|DAY}}</nowiki>
<nowiki>{{DoB|YEAR|MONTH|DAY}}</nowiki>



Latest revision as of 23:27, February 13, 2024

{{DoB|YEAR|MONTH|DAY}}

Calculates a person's current age when given their birth date. Main use is for {{Infobox Smasher}} and user pages.

If the person has passed away, an optional 4th parameter can be set to their age at time of death.

Originally taken from Wikipedia.