Template talk:Infobox cricket tour

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconCricket Template‑class
WikiProject iconThis template is part of WikiProject Cricket which aims to expand and organise information better in articles related to the sport of cricket. Please participate by visiting the project and talk pages for more details.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
WikiProject Cricket To-do list:
Article assessment
Verifiability
Cleanup
Infoboxes
Cricket people
Cricket teams & countries
Images
On this day in cricket
Umpires
Women
Update
Other

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]