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

Jump to navigation Jump to search
ಚು
Undid revision 150127235 by Arctic.gnome (talk)
(setting aside template code in its own block)
ಚು (Undid revision 150127235 by Arctic.gnome (talk))
;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><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}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 

edit

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

ಸಂಚರಣೆ ಪಟ್ಟಿ