Jump to content

Template talk:Infobox cricket tour

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Date ranges

[edit]

Would someone be able to correct this template so that, if you only need to input one date (as in the case of English cricket team in Ireland in 2019), it doesn't display the endash. It looks a bit silly having to display "3 May 2019–" or "3 May 2019–3 May 2019". Also, the dash should be spaced, so as to read "3 May 2019 – 6 June 2019" (for example). – PeeJay 12:27, 3 May 2019 (UTC)[reply]

I'll give it a go. Spike 'em (talk) 17:51, 3 May 2019 (UTC)[reply]
It now only adds the dash (and the "s" to Dates) if {{{to_date}}} is set. Could probably add code to deal with just that and no {{{from_date}}} but that is for another time. Spike 'em (talk) 20:29, 3 May 2019 (UTC)[reply]