Open main menu

Changes

simulate error message to remove page from Category:Pages with parser function time errors
{{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></code> produces:

<strong class="error">Error: Invalid time.</strong>

However, <code><nowiki>{{#time:Y|{{</nowiki>{{BASEPAGENAME}}<nowiki>|{{End date|2007|3|30}}}}}}</nowiki></code> produces:

{{#time:Y|{{{{BASEPAGENAME}}|{{End date|2007|3|30}}}}}}

== See also ==
* {{tl|Start date}}
* {{tl|Start-date}}
* {{tl|End date}}
* {{tl|End-date}}

<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Time, date and calendar templates]]
[[Category:String manipulation templates]]
}}</includeonly>
Anonymous user