Template talk:Infobox cricket tour

(Redirected from Template talk:Infobox cricket tour/sandbox)
Latest comment: 5 years ago by Spike 'em in topic Date ranges

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