Template:Age in days hyphen: Difference between revisions
Jump to navigation
Jump to search
JoshuaJSlone (talk | contribs) (Hopefully I've made it correctly use the current date for default of second, since it freaks out if we just tell it blanks.) |
JoshuaJSlone (talk | contribs) (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}}}} |
Revision as of 05:52, 17 March 2014
Expression error: Unexpected < operator.
Age in days
|year1 = {{{1}}}
|month1 =
|day1 =
|year2 = {{{2}}}
|month2 =
|day2 =