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

From Surfing Wiki
Jump to navigation Jump to search
(Created page with "<includeonly> <span style="display:none"> <span class="bday"> {{{3|{{{day}}}}}}-{{{2|{{{month}}}}}}-{{{1|{{{year}}}}}} </span> </span> <span class="noprint F...")
 
 
(5 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>
 
<span style="display:none">
    <span class="bday">
        {{{3|{{{day}}}}}}-{{{2|{{{month}}}}}}-{{{1|{{{year}}}}}}
    </span>
</span>
 
<span class="noprint ForceAgeToShow">
    age&nbsp;{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1|{{{year}}}}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2|{{{month}}}}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2|{{{month}}}}}})and({{{6|{{CURRENTDAY}}}}})<({{{3|{{{day}}}}}}))}}
</span>
 
</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}}