"फलकम्:Death date and age" इत्यस्य संस्करणे भेदः

प्रयासः 1
imported>Jonesey95
(Update from sandbox to add the ability to omit specifics of birth date)
(प्रयासः 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;{{#if:age|{{अङ्कपरिवर्तकम्|{{{4}}}|प्रकारः=देवनागरी}}|{{अङ्कपरिवर्तकम्|{{{5}}}|प्रकारः=देवनागरी}}|{{अङ्कपरिवर्तकम्|{{{6}}}|प्रकारः=देवनागरी}}|{{अङ्कपरिवर्तकम्|{{{1}}}|प्रकारः=देवनागरी}}|{{अङ्कपरिवर्तकम्|{{{2}}}|प्रकारः=देवनागरी}}|{{अङ्कपरिवर्तकम्|{{{3}}}|प्रकारः=देवनागरी}}}})</includeonly><noinclude>
|{{#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 -->{{age|{{{4}}}|12|31|{{{1}}}|{{{2}}}|{{{3}}}}}
|{{#ifexpr:{{{2}}}>{{{5}}}<!-- if birth month but not day exist and birth month was reached in death year -->
|{{age|{{{4}}}|1|1|{{{1}}}|{{{2}}}|{{{3}}}}}
|<!-- 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}}}}}
}}
}}
}}
|{{Age in years|{{{4}}}|{{{1}}}}}}})<!--
-- Error checks --
-->{{#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 )
| &#32;{{error|invalid month}}{{main other|[[Category:Pages using age template with invalid date]]}}|}}
}}{{#if:{{{6|}}}|{{#ifexpr: ( {{{3|}}} > 31 ) OR ( {{{3|}}} < 1 ) OR ( {{{6|}}} > 31 ) OR ( {{{6|}}} < 1 )
| &#32;{{error|invalid day}}{{main other|[[Category:Pages using age template with invalid date]]}}|}}
}}</includeonly><noinclude>
{{documentation}}
</noinclude>
७६,५४२

सम्पादन

"https://sa.wikipedia.org/wiki/विशेषः:MobileDiff/296490" इत्यस्माद् प्रतिप्राप्तम्