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

From Surfing Wiki
Jump to navigation Jump to search
(Created page with "<includeonly> {{#if:{{{df|}}}|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},}} {{{1}}} <span style="display:none"> (<span class="dday deat...")
 
 
Line 1: Line 1:
<includeonly>
{{#if:{{{df|}}}|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},}} {{{1}}}
<span style="display:none">
  (<span class="dday deathdate">{{{1}}}-{{padleft:{{MONTHNUMBER|{{{2}}}}}|2|0}}-{{padleft:{{{3}}}|2|0}}</span>)</span> (aged&nbsp;{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|{{{2}}}|{{{3}}}}})
</includeonly>
</noinclude>
<includeonly>{{{6|{{{day}}}}}}-{{{5|{{{month}}}}}}-{{{4|{{{year}}}}}} (age&nbsp;{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1|{{{year}}}}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2|{{{month}}}}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2|{{{month}}}}}})and({{{6|{{CURRENTDAY}}}}})<({{{3|{{{day}}}}}}))}})</includeonly>
<includeonly>{{{6|{{{day}}}}}}-{{{5|{{{month}}}}}}-{{{4|{{{year}}}}}} (age&nbsp;{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1|{{{year}}}}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2|{{{month}}}}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2|{{{month}}}}}})and({{{6|{{CURRENTDAY}}}}})<({{{3|{{{day}}}}}}))}})</includeonly>


Line 14: Line 5:
* Year month day is mandatory.
* Year month day is mandatory.
<pre>
<pre>
{{birth date and age|1970|02|28}}
{{death date and age|1970|02|28|1980|02|28}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 17:12, 4 February 2015


Usage:

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