Difference between revisions of "Template:Calendar Date Span"
From GFBio Public Wiki
m (null edit) |
m (adjusted formatting to show future and current dates in bold) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifexpr: | + | <includeonly>{{#ifexpr: ({{#time:Ymd}} <= {{#time:Ymd|{{{end}}}}}) | '''{{#if:{{{output|}}}|{{{output}}}| |
{{#ifexpr: ({{#time:Y|{{{start}}}}} = {{#time:Y|{{{end}}}}})| | {{#ifexpr: ({{#time:Y|{{{start}}}}} = {{#time:Y|{{{end}}}}})| | ||
{{#ifexpr: ({{#time:Ym|{{{start}}}}} = {{#time:Ym|{{{end}}}}})| | {{#ifexpr: ({{#time:Ym|{{{start}}}}} = {{#time:Ym|{{{end}}}}})| | ||
Line 25: | Line 25: | ||
| | | | ||
{{date|{{{start}}}}} - {{date|{{{end}}}}} | {{date|{{{start}}}}} - {{date|{{{end}}}}} | ||
− | }} }} }}</includeonly> | + | }} }} }}</includeonly><noinclude> |
− | <noinclude> | + | |
<templatedata> | <templatedata> | ||
Line 54: | Line 53: | ||
} | } | ||
}, | }, | ||
− | "description": "A template to describe an event that spans over several days. The months are spelled out and the text is highlighted in bold, if the current date is within the date span. For time spans with a from and to date, please use the Template:Calender Date. " | + | "description": "A template to describe an event that spans over several days. The months are spelled out and the text is highlighted in bold, if the current date is prior to or within the date span. For time spans with a from and to date, please use the Template:Calender Date. " |
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 10:58, 27 May 2019
A template to describe an event that spans over several days. The months are spelled out and the text is highlighted in bold, if the current date is prior to or within the date span. For time spans with a from and to date, please use the Template:Calender Date.
Parameter | Description | Type | Status | |
---|---|---|---|---|
start | start | the first day of the event, formatted according to ISO 8601 (YYY-MM-DD).
| date | required |
end | end | the last day of the event, formatted according to ISO 8601 (YYY-MM-DD).
| date | required |
output | output | an optional way to overwrite the written output of the template, e.g. when there is still uncertainty about the precise dates. Machine readable ISO date still have to be provided and the text will be highlighted in bold, if the current date is within the specified date span.
| string | optional |