אונטערשייד צווישן ווערסיעס פון "יחידה:טווח זמנים"

אפדעיט
(אפדעיט)
(אפדעיט)
שורה 131: שורה 131:
else -- date ranges
else -- date ranges
if startDate == nil and endDate~=nil  then
if startDate == nil and endDate~=nil  then
if onlyEndDateText == nil then return end -- ignore only end date
if onlyEndDateText == nil then
res = mw.ustring.format(onlyEndDateText, endDate)
dateFormat = '%s–%s'
if mw.ustring.match(endDate, ' ') then
dateFormat = '%s – %s'
end
res = mw.ustring.format(dateFormat, '?', endDate)
else
res = mw.ustring.format(onlyEndDateText, endDate)
end
elseif startDate ~= nil and (endDate==nil or (ongoingEvent and endDate~=nil))  then
elseif startDate ~= nil and (endDate==nil or (ongoingEvent and endDate~=nil))  then
if ongoingEvent then
if ongoingEvent then