Template:Age in days hyphen: Difference between revisions

From JJSWiki
Jump to navigation Jump to search
(Debugging)
m (4 revisions imported)
 
(2 intermediate revisions by the same user not shown)
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}}}}
|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>
}}<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}}}}

Latest revision as of 21:10, 16 April 2023

Expression error: Unexpected < operator.