Open main menu

Changes

no edit summary
{{#if:{{{3|<noinclude>dmy</noinclude>}}}
|<!--has 3 parameters-->{{#ifeq:{{#switch:{{{3|<noinclude>dmy</noinclude>}}}|dmy=1 |dm=1 | mdy=3 |md=4 |#default = 0}} | 0 |{{error|Date format must be one of the following: dmy, dm, mdy, md}}
| <!--start date-->{{nowrap |{{#time:{{#ifexpr:{{str find0|{{{3|<noinclude>dmy</noinclude>}}}|md}} > -1 | F j| j F}}| {{{1|<noinclude>now</noinclude>}}} }}<!--/nowrap-->}}<!-- start year-->{{#ifeq:{{str endswith|{{{3|<noinclude>dmy</noinclude>}}}|y }} | yes | {{#ifeq:{{#time:Y|{{{1|<noinclude>now</noinclude>}}}}}|{{#time:Y|{{{2|<noinclude>+24 hours</noinclude>}}}}} | <!-- ignore if start and end dates have same year--> |{{#ifexpr:{{str find0|{{{3|<noinclude>dmy</noinclude>}}}|md}} > -1 |,|{{sp}}<!--no comma if day first--> }} {{#time:Y | {{{1|<noinclude>now</noinclude>}}} }}|<!--do nothing if year not in format string-->}} }}{{spaced ndash}}<!--end date-->{{nowrap |{{#time:{{#ifexpr:{{str find0|{{{3|<noinclude>dmy</noinclude>}}}|md}} > -1 | F j| j F}}| {{{2|<noinclude>+24 hours</noinclude>}}} }}<!--/nowrap-->}}<!--end year-->{{#ifeq:{{str endswith|{{{3|<noinclude>dmy</noinclude>}}}|y }} | yes |{{#ifexpr:{{str find0|{{{3|<noinclude>dmy</noinclude>}}}|md}} > -1 |,|{{sp}}<!--no comma if day first--> }} {{#time:Y | {{{2|<noinclude>+24 hours</noinclude>}}} }}|<!--do nothing if year not in format string-->}} }}
|<!--does not have 3 parameters--> {{error|Must have three parameters: start date, end date, and format (dmy/dm/mdy/md) }} }}<noinclude>{{Documentation}}</noinclude>
Anonymous user