Toggle menu
15
236
76
27.7K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Trim date/doc: Difference between revisions

Template page
Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> == Usage == {{tlx|1={{BASEPAGENAME}}|2=1=''date''}} Trims all hidden text and microformats from dates output by {{tl|Start date}}, {{tl|Start-date}}, {{tl|End date}}, and {{tl|End-date}}. This template is of interest to template writers only. For example, <code><nowiki>{{#time:Y|{{End date|2007|3|30}}}}</nowiki><..."
 
(No difference)

Latest revision as of 02:01, 24 February 2025

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:

Error: Invalid time.

See also