"ಟೆಂಪ್ಲೇಟು:Age in years and days" ಆವೃತ್ತಿಗಳ ಮಧ್ಯದ ಬದಲಾವಣೆಗಳು

setting aside template code in its own block
imported>Moondyne
(mv example to here)
(setting aside template code in its own block)
;Examples:
:<nowiki>{{age in years and days|1989|7|23|2003|7|14}}</nowiki> returns "{{age in years and days|1989|7|23|2003|7|14}}"
:<nowiki>{{age in years and days|1989|7|23}}</nowiki> returns "{{age in years and days|1989|7|23}}"</noinclude>
:<nowiki>{{age in years and days|1989|7|23}}</nowiki> returns "{{age in years and days|1989|7|23}}"</noinclude><includeonly>{{age | {{{1}}} | {{{2}}} | {{{3}}} | {{{4|{{CURRENTYEAR}}}}} | {{{5|{{CURRENTMONTH}}}}} | {{{6|{{CURRENTDAY}}}}}}} {{#ifexpr: {{age | {{{1}}} | {{{2}}} | {{{3}}} | {{{4|{{CURRENTYEAR}}}}} | {{{5|{{CURRENTMONTH}}}}} | {{{6|{{CURRENTDAY}}}}}}}=1 |year|years}}, {{age_in_days | year1={{#ifexpr: {{{5|{{CURRENTMONTH}}}}}<{{{2}}} | {{#expr:{{{4|{{CURRENTYEAR}}}}}-1}} | {{#ifexpr:{{{5|{{CURRENTMONTH}}}}}={{{2}}} | {{#ifexpr:{{{6|{{CURRENTDAY}}}}}<{{{3}}} | {{#expr:{{{4|{{CURRENTYEAR}}}}}-1}} | {{{4|{{CURRENTYEAR}}}}}}} | {{{4|{{CURRENTYEAR}}}}}}}}} | month1={{{2}}} | day1={{{3}}} | year2={{{4|{{CURRENTYEAR}}}}} | month2={{{5|{{CURRENTMONTH}}}}} | day2={{{6|{{CURRENTDAY}}}}}}} {{#ifexpr: {{age_in_days | year1={{#ifexpr: {{{5|{{CURRENTMONTH}}}}}<{{{2}}} | {{#expr:{{{4|{{CURRENTYEAR}}}}}-1}} | {{#ifexpr:{{{5|{{CURRENTMONTH}}}}}={{{2}}} | {{#ifexpr:{{{6|{{CURRENTDAY}}}}}<{{{3}}} | {{#expr:{{{4|{{CURRENTYEAR}}}}}-1}} | {{{4|{{CURRENTYEAR}}}}}}} | {{{4|{{CURRENTYEAR}}}}}}}}} | month1={{{2}}} | day1={{{3}}} | year2={{{4|{{CURRENTYEAR}}}}} | month2={{{5|{{CURRENTMONTH}}}}} | day2={{{6|{{CURRENTDAY}}}}}}}=1 |day|days}}</includeonly><noinclude>[[Category:Date mathematics templates|{{PAGENAME}}]]
 
:<nowiki>{{age in years and days|1989|7|23}}</nowiki> returns "{{age in years and days|1989|7|23}}"</noinclude><includeonly>{{age | {{{1}}} | {{{2}}} | {{{3}}} | {{{4|{{CURRENTYEAR}}}}} | {{{5|{{CURRENTMONTH}}}}} | {{{6|{{CURRENTDAY}}}}}}} {{#ifexpr: {{age | {{{1}}} | {{{2}}} | {{{3}}} | {{{4|{{CURRENTYEAR}}}}} | {{{5|{{CURRENTMONTH}}}}} | {{{6|{{CURRENTDAY}}}}}}}=1 |year|years}}, {{age_in_days | year1={{#ifexpr: {{{5|{{CURRENTMONTH}}}}}<{{{2}}} | {{#expr:{{{4|{{CURRENTYEAR}}}}}-1}} | {{#ifexpr:{{{5|{{CURRENTMONTH}}}}}={{{2}}} | {{#ifexpr:{{{6|{{CURRENTDAY}}}}}<{{{3}}} | {{#expr:{{{4|{{CURRENTYEAR}}}}}-1}} | {{{4|{{CURRENTYEAR}}}}}}} | {{{4|{{CURRENTYEAR}}}}}}}}} | month1={{{2}}} | day1={{{3}}} | year2={{{4|{{CURRENTYEAR}}}}} | month2={{{5|{{CURRENTMONTH}}}}} | day2={{{6|{{CURRENTDAY}}}}}}} {{#ifexpr: {{age_in_days | year1={{#ifexpr: {{{5|{{CURRENTMONTH}}}}}<{{{2}}} | {{#expr:{{{4|{{CURRENTYEAR}}}}}-1}} | {{#ifexpr:{{{5|{{CURRENTMONTH}}}}}={{{2}}} | {{#ifexpr:{{{6|{{CURRENTDAY}}}}}<{{{3}}} | {{#expr:{{{4|{{CURRENTYEAR}}}}}-1}} | {{{4|{{CURRENTYEAR}}}}}}} | {{{4|{{CURRENTYEAR}}}}}}}}} | month1={{{2}}} | day1={{{3}}} | year2={{{4|{{CURRENTYEAR}}}}} | month2={{{5|{{CURRENTMONTH}}}}} | day2={{{6|{{CURRENTDAY}}}}}}}=1 |day|days}}</includeonly><noinclude>[[Category:Date mathematics templates|{{PAGENAME}}]]
 
<noinclude>[[Category:Date mathematics templates|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 

edit

"https://kn.wikipedia.org/wiki/ವಿಶೇಷ:MobileDiff/395142" ಇಂದ ಪಡೆಯಲ್ಪಟ್ಟಿದೆ