داڕێژە:ڕێکەوتی مەرگ و تەمەن: جیاوازیی نێوان پێداچوونەوەکان

ناوەڕۆکی سڕاو ناوەڕۆکی زیادکراو
No edit summary
No edit summary
ھێڵی ١:
<includeonly>{{#if:{{{df|}}}|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},}} {{{1}}}<span style="display:none">({{{1}}}-{{padleft:{{formatnum:{{MONTHNUMBER|{{{2}}}}}|2|0}}|R}}-{{padleft:{{{3}}}|2|0}})</span> (aged&nbsp;{{#if:{{{5|}}}
|{{#if:{{{6|}}}
|<!-- if all birth values are specified -->{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|{{{2}}}|{{{3}}}}}
|{{#ifexpr:{{{2}}}<{{{5}}}
|<!-- if birth month but not day exist and birth month was not reached in death year -->{{formatnum:{{age|{{{4}}}|12|31|{{{1}}}|{{{2}}}|{{{3}}}}}|R}}
|{{#ifexpr:{{{2}}}>{{{5}}}<!-- if birth month but not day exist and birth month was reached in death year -->
|{{formatnum:{{age|{{{4}}}|1|1|{{{1}}}|{{{2}}}|{{{3}}}}}|R}}
|<!-- if birth month but not day exist and birth month is the death month -->{{age|{{{4}}}|12|31|{{{1}}}|{{{2}}}|{{{3}}}}}–{{age|{{{4}}}|1|1|{{{1}}}|{{{2}}}|{{{3}}}}}
}}
}}
}}
|{{formatnum:{{Age in years|{{{4}}}|{{{1}}}}}}}|R}})<!--
-- Error checks --
-->{{formatnum:{{#ifexpr: ( {{{1|}}} > {{CURRENTYEAR}} ) OR ( {{{4|}}} > {{CURRENTYEAR}} ) OR ( {{{4|}}} > {{{1|}}} ) OR ( {{{1|}}} - {{{4|}}} > 150 }})
| &#32;{{error|invalid year}}{{main other|[[Category:Pages using age template with invalid date]]}}
}}{{#if:{{{5|}}}|{{#ifexpr: ( {{{2|}}} > 12 ) OR ( {{{2|}}} < 1 ) OR ( {{{5|}}} > 12 ) OR ( {{{5|}}} < 1 )