Difference between revisions of "Template:Trim date"

From Nordic Larp Wiki
Jump to navigation Jump to search
en>MusikAnimal
m (Protected "Template:Trim date": Highly visible template; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
 
m (1 revision imported)
 
(No difference)

Latest revision as of 02:47, 2 January 2019

November 22, 2024

Template documentation[view] [edit] [history] [purge]

Usage

{{Trim date|1=date}}

Trims all hidden text and microformats from dates output by {{Start date}}, {{Start-date}}, {{End date}}, and {{End-date}}. 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