Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:En dash range/doc

From Wikipedia, the free encyclopedia

This template creates a en dash-separated range that is compliant with MOS:RANGE. Its main purpose is to automatically determine whether a spaced or unspaced dash is to be used, based on the presence of whitespace, hyphens, or dashes in either term.

Usage

[edit]

{{En dash range|start|end}}

Examples:

  • {{En dash range|2020|2021}}: 2020–2021
  • {{En dash range|2020|present}}: 2020–present
  • {{En dash range|1 January 2020|1 January 2021}}: 1 January 2020  1 January 2021
  • {{En dash range|1 January 2020|present}}: 1 January 2020  present
  • {{En dash range|1 January 2020|2021}}: 1 January 2020  2021
  • {{En dash range|2020|1 January 2021}}: 2020  1 January 2021
  • {{En dash range|2020-01-01|2021-01-01}}: 2020-01-01  2021-01-01
  • {{En dash range|2020|2021<ref>...</ref>}}: 2020–2021[1]