Template:Get Dates String

From Broadcast for Schools.co.uk.co.uk
Jump to: navigation, search

dates unknown

{{ Get Dates String | calcfirstrunfrom= | calcfirstrunto= | calcrepeatsto= | displayfirstrunfrom= | displayfirstrunto= | display repeatsto= }}

Does a string of a programme's run dates, Property:First run from until Property:End date (but using the pre-formatted date strings for calculation & display). End date is recalculated so that instead of the current date & time, programmes without an end date say "present". If there is no Property:First run from then it returns "unknown".

Done as a template and fed back as a programme property because Semantic Drilldown has problems with working it out fresh in its templates.