Template:DoB: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(Blanked the page)
mNo edit summary
 
(8 intermediate revisions by 6 users not shown)
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" 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>


Calculates a person's current age when given their birth date. Main use is for {{t|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.
[[Category:Meta-templates]]</noinclude>

Latest revision as of 22: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.