Template:DoB: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (it's wrong... it comes up with month(new line)(space)day year age - the (new line) and (space) shouldn't be there, but I don't know how to fix it...)
m (Testing something)
Line 1: Line 1:
<includeonly>
<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>
{{#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>
<nowiki>{{DoB|YEAR|MONTH|DAY}}</nowiki>
<nowiki>{{DoB|YEAR|MONTH|DAY}}</nowiki>



Revision as of 07:40, August 2, 2009

{{DoB|YEAR|MONTH|DAY}}

This is the Birth date and age template from Wikipedia, and is available under the GFDL. I changed the name to DoB because it's a lot easier to type, and the only reason why Wikipedia don't call it something like that is because they've got several very similar templates, so they give them more specific names to avoid confusion.

This proposed new Date of Birth template is primarily for use with the Smasher template. Because most people have better things to do than remember Smashers' birthdays, the current age on a lot of Smasher articles is out of date. This template calculates how old someone is given their date of birth.