開啟主選單

求真百科

變更

Template:Death date and age

增加 1,312 位元組, 8 年前
ep
<includeonly>{{{1|{{{year}}}}}}年{{#if:{{{df|}}}|{{MONTHNAME|{{{2|{{{month}}}}}}}}{{#expr:{{{3|{{{day}}}}}}}}日|{{MONTHNAME|{{{2|{{{month}}}}}}}}{{#expr:{{{3|{{{day}}}}}}}}日}}<span style="display:none">(<span class="dday deathdate">{{{1}}}-{{padleft:{{MONTHNUMBER|{{{2}}}}}|2|0}}-{{padleft:{{{3}}}|2|0}}</span>)</span>({{#if:{{{5|}}}
|{{#if:{{{6|}}}
|<!-- if all birth values are specified -->{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1|{{{year}}}}}}|{{{2|{{{month}}}}}}|{{{3|{{{day}}}}}}}}
|{{#ifexpr:{{{2|{{{month}}}}}}<{{{5}}}
|<!-- if birth month but not day exist and birth month was not reached in death year -->{{age|{{{4}}}|12|31|{{{1|{{{year}}}}}}|{{{2|{{{month}}}}}}|{{{3|{{{day}}}}}}}}
|{{#ifexpr:{{{2|{{{month}}}}}}>{{{5}}}<!-- if birth month but not day exist and birth month was reached in death year -->
|{{age|{{{4}}}|1|1|{{{1|{{{year}}}}}}|{{{2|{{{month}}}}}}|{{{3|{{{day}}}}}}}}
|<!-- if birth month but not day exist and birth month is the death month -->{{age|{{{4}}}|12|31|{{{1|{{{year}}}}}}|{{{2|{{{month}}}}}}|{{{3|{{{day}}}}}}}}–{{age|{{{4}}}|1|1|{{{1|{{{year}}}}}}|{{{2|{{{month}}}}}}|{{{3|{{{day}}}}}}}}
}}
}}
}}
|{{Age in years|{{{4}}}|{{{1|{{{year}}}}}}}}}}歲)</includeonly><noinclude>
{{documentation|Template:Death date and age/doc}}
</noinclude>