Template:Age in days hyphen: Difference between revisions

Jump to navigation Jump to search
Debugging
(Hopefully I've made it correctly use the current date for default of second, since it freaks out if we just tell it blanks.)
 
(Debugging)
Line 7: Line 7:
|day2  = {{#if:{{{2}}}| {{#explode:{{{2}}}|-|2}} | {{CURRENTDAY}}}}
|day2  = {{#if:{{{2}}}| {{#explode:{{{2}}}|-|2}} | {{CURRENTDAY}}}}
}}<noinclude>[[Category:Templates]]</noinclude>
}}<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}}}}
|month2 = {{#if:{{{2}}}| {{#explode:{{{2}}}|-|1}} | {{CURRENTMONTH}}}}
|day2  = {{#if:{{{2}}}| {{#explode:{{{2}}}|-|2}} | {{CURRENTDAY}}}}

Navigation menu