Difference between revisions of "Template:Birth date and age"

From CWCki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><span style="display:none"> (<span class="bday">{{{1|{{{year}}}}}}-{{padleft:{{{2|{{{month}}}}}}|2|0}}-{{padleft:{{{3|{{{day}}}}}}|2|0}}</span>) </span>{{#if:{{{df|}}}|{{#expr:{{{3|{{{day}}}}}}}} {{MONTHNAME|{{{2|{{{month}}}}}}}}|{{MONTHNAME|{{{2|{{{month}}}}}}}} {{#expr:{{{3|{{{day}}}}}}}},}} {{{1|{{{year}}}}}}{{{src|}}}<span class="noprint ForceAgeToShow"> (age&nbsp;{{age | {{{1|{{{year}}}}}} | {{{2|{{{month}}}}}} | {{{3|{{{day}}}}}} }})</span></includeonly><noinclude>
<includeonly>{{Birth date|{{{1|{{{year}}}}}}|{{{2|{{{month}}}}}}|{{{3|{{{day}}}}}}|{{{4|{{{source|}}}}}}}}
<span class="noprint ForceAgeToShow"> (age&nbsp;{{age | {{{1|{{{year}}}}}} | {{{2|{{{month}}}}}} | {{{3|{{{day}}}}}} }})</span></includeonly><noinclude>
{{Usage|1=Example:
{{Usage|1=Example:
<pre>{{Birth date and age|2000|1|4}}</pre>
<pre>{{Birth date and age|2000|1|4}}</pre>

Latest revision as of 21:03, 6 October 2021

Usage

These usage notes will not be included in articles bearing this template.

Example:

{{Birth date and age|2000|1|4}}

- Displays: (2000-01-04) January 4, 2000 (age 24)