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

From Surfing Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{{3|{{{day}}}}}}-{{{2|{{{month}}}}}}-{{{1|{{{year}}}}}} (age&nbsp;{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1|{{{year}}}}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2|{{{month}}}}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2|{{{month}}}}}})and({{{6|{{CURRENTDAY}}}}})<({{{3|{{{day}}}}}}))}})</includeonly>
 
{{{3|{{{day}}}}}}-{{{2|{{{month}}}}}}-{{{1|{{{year}}}}}}
age&nbsp;{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1|{{{year}}}}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2|{{{month}}}}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2|{{{month}}}}}})and({{{6|{{CURRENTDAY}}}}})<({{{3|{{{day}}}}}}))}}
 
 
</includeonly>


<noinclude>
<noinclude>
xxx
==Usage:==
* Year month day is mandatory.
<pre>
{{birth date and age|1970|02|28}}
</pre>
</noinclude>
</noinclude>

Latest revision as of 20:10, 3 February 2015


Usage:

  • Year month day is mandatory.
{{birth date and age|1970|02|28}}