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

From comp.tf
Jump to navigation Jump to search
m
m
 
Line 1: Line 1:
<includeonly>{{#if:{{{df|}}}|{{#expr:{{{3|{{{day}}}}}}}} {{MONTHNAME|{{{2|{{{month}}}}}}}}|{{MONTHNAME|{{{2|{{{month}}}}}}}} {{#expr:{{{3|{{{day}}}}}}}},}} {{{1|{{{year}}}}}}<span style="display:none"> (<span class="bday">{{{1|{{{year}}}}}}-{{padleft:{{{2|{{{month}}}}}}|2|0}}-{{padleft:{{{3|{{{day}}}}}}|2|0}}</span>)</span><span class="noprint"> (aged&nbsp;{{age | {{{1|{{{year}}}}}} | {{{2|{{{month}}}}}} | {{{3|{{{day}}}}}} | {{{4|}}} | {{{5|}}} | {{{6|}}}}})</span></includeonly><noinclude>
+
<includeonly>{{#if:{{{df|}}}|{{#expr:{{{6|{{{day}}}}}}}} {{MONTHNAME|{{{5|{{{month}}}}}}}}|{{MONTHNAME|{{{5|{{{month}}}}}}}} {{#expr:{{{6|{{{day}}}}}}}},}} {{{4|{{{year}}}}}}<span style="display:none"> (<span class="bday">{{{4|{{{year}}}}}}-{{padleft:{{{5|{{{month}}}}}}|2|0}}-{{padleft:{{{6|{{{day}}}}}}|2|0}}</span>)</span><span class="noprint"> (aged&nbsp;{{age | {{{1|{{{year}}}}}} | {{{2|{{{month}}}}}} | {{{3|{{{day}}}}}} | {{{4|}}} | {{{5|}}} | {{{6|}}}}})</span></includeonly><noinclude>
 
{{documentation}}[[Category:Source Wikipedia]][[Category:Templates]]</noinclude>
 
{{documentation}}[[Category:Source Wikipedia]][[Category:Templates]]</noinclude>

Latest revision as of 05:56, 10 December 2019

(view - edit) Documentation

Usage

{{death date and age|birth_year|birth_month|birth_day|death_year|death_month|death_day}}

Example

{{death_date_and_age|1980|09|22|2016|01|01}}

gives:

January 1, 2016 (2016-01-01) (aged 35)