Template:Age in days hyphen: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3: Line 3:
|month1 = {{#explode:{{{1}}}|-|1}}
|month1 = {{#explode:{{{1}}}|-|1}}
|day1  = {{#explode:{{{1}}}|-|2}}
|day1  = {{#explode:{{{1}}}|-|2}}
|year2  = {{#if:{{{2}}}| {{#explode:{{{2}}}|-|0}} | {{CURRENTYEAR}}}}
|month2 = {{#if:{{{2}}}| {{#explode:{{{2}}}|-|1}} | {{CURRENTMONTH}}}}
|day2  = {{#if:{{{2}}}| {{#explode:{{{2}}}|-|2}} | {{CURRENTDAY}}}}
}}<noinclude>[[Category:Templates]]</noinclude>
Age in days
|year1  = {{#explode:{{{1}}}|-|0}}
|month1 = {{#explode:{{{1}}}|-|1}}
|day1  = {{#explode:{{{1}}}|-|2}}
|year2  = {{#if:{{{2|}}}| {{#explode:{{{2}}}|-|0}} | {{CURRENTYEAR}}}}
|year2  = {{#if:{{{2|}}}| {{#explode:{{{2}}}|-|0}} | {{CURRENTYEAR}}}}
|month2 = {{#if:{{{2|}}}| {{#explode:{{{2}}}|-|1}} | {{CURRENTMONTH}}}}
|month2 = {{#if:{{{2|}}}| {{#explode:{{{2}}}|-|1}} | {{CURRENTMONTH}}}}
|day2  = {{#if:{{{2|}}}| {{#explode:{{{2}}}|-|2}} | {{CURRENTDAY}}}}
|day2  = {{#if:{{{2|}}}| {{#explode:{{{2}}}|-|2}} | {{CURRENTDAY}}}}
}}<noinclude>[[Category:Templates]]</noinclude>