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

ಸಂಪಾದನೆಯ ಸಾರಾಂಶವಿಲ್ಲ
ಚು (Undid revision 150127235 by Arctic.gnome (talk))
No edit summary
:<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>{{Protected template}}
{{template doc}}
This template returns the number of years and days that have elapsed between two dates. If the second set of parameters is not included it will return the years and days between a given date and today.
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
;Usage:
:<nowiki>{{age in years and days|year1|month1|day1|year2|month2|day2}}</nowiki> or
:<nowiki>{{age in years and days|year1|month1|day1}}</nowiki>
 
;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}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
[[nl:Sjabloon:Leeftijd in jaren en dagen]]
</noinclude>

edit

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