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:Trim date/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

{{Trim date|1=date}}

Trims all hidden text and microformats from dates output by {{Start date}}, {{Start date text}}, {{End date}}, and {{End date text}}. This template is of interest to template writers only.

For example, {{#time:Y|{{End date|2007|3|30}}}} produces:

Error: Invalid time.

However, {{#time:Y|{{Trim date|{{End date|2007|3|30}}}}}} produces:

2007

See also

[edit]