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:Title year2range/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Takes a year from the name of the page and converts it into a range, by applying {{Year2range}} to {{Title year}}. It does not pass through the {{Title year}} parameters but can take a parameter to specify the range, which is 1 year by default. So e.g. on Category:2026 in France:

  • {{Title year2range}} → 2026–27
  • {{Title year2range|1}} → 2026–27
  • {{Title year2range|5}} → 2026–31
  • {{Title year2range|-5}} → 2026–21

To go the other way, to generate a year from a range in the page name, you just use {{Title year}} (or {{Title year+1}} or {{Title year-1}} as appropriate)

See also

[edit]