Template:DoB: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (rewrote summary) |
mNo edit summary |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{df|}}}|{{#expr:{{{3|{{{day}}}}}}}} {{MONTHNAME|{{{2|{{{month}}}}}}}}|{{MONTHNAME|{{{2|{{{month}}}}}}}} {{#expr:{{{3|{{{day}}}}}}}},}} {{{1|{{{year}}}}}}<span style=" | <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> | ||
Calculates a person's current age when given their birth date. Main use is for {{t|Infobox Smasher}} and | Calculates a person's current age when given their birth date. Main use is for {{t|Infobox Smasher}} and user pages. | ||
</noinclude> | |||
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.