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

From CWCki
Jump to navigation Jump to search
m
 
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}}}}}}{{{4|{{{source|}}}}}}<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)