Template:Trim date
Revision as of 18:20, 9 October 2017 by en>MusikAnimal (Protected "Template:Trim date": Highly visible template; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
November 22, 2024
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
- {{Start date}}
- {{Start-date}}
- {{End date}}
- {{End-date}}
The above documentation is transcluded from Template:Trim date/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |