Template:Administrator election schedule/date range/display/doc

Accepts two date parameters and displays them as a range from midnight on the first date to 23:59 on the day preceding the second date. It is used as a helper template for {{Administrator election schedule/date range}}.

Usage

edit
{{Administrator election schedule/date range/display|start date|end date}}
{{Administrator election schedule/date range/display|start date|end date|prefix_start=prefix for start date}}
{{Administrator election schedule/date range/display|start date|end date|prefix_end=prefix for end date}}

Examples

edit
{{Administrator election schedule/date range/display|1 July 2025|2 July 2025}}

{{Administrator election schedule/date range/display|July 2, 2025|July 4, 2025}}

{{Administrator election schedule/date range/display|5 July 2025|7 July 2025|prefix_start=starting|prefix_end=around}}

Tuesday 00:00, 01 July 2025 – Tuesday 23:59, 01 July 2025

Wednesday 00:00, 02 July 2025 – Thursday 23:59, 03 July 2025

starting Saturday 00:00, 05 July 2025 – around Sunday 23:59, 06 July 2025

Template Data

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Administrator election schedule/date range/display in articles based on its TemplateData.

TemplateData for Administrator election schedule/date range/display

Display first and second parameters as a date range from midnight on the first date to 23:59 on the day preceding the second date.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
start date1

start date

Stringrequired
end date2

end date

Stringrequired
prefix for start dateprefix_start

text displayed before the start date

Stringoptional
prefix for end dateprefix_end

text displayed before the end date

Stringoptional