יחידה:טווח זמנים: הבדלים בין גרסאות בדף

מ גרסה אחת של הדף wikipedia:he:יחידה:טווח_זמנים יובאה
מ 7 גרסאות של הדף wikipedia:he:יחידה:טווח_זמנים יובאו
 
(5 גרסאות ביניים של 5 משתמשים אינן מוצגות)
שורה 80: שורה 80:
-- set default ongoingEvent as false
-- set default ongoingEvent as false
ongoingEvent = false
ongoingEvent = false
for v in string.gmatch(endDateOngoingEvent, "[^,%s]+") do
for v in string.gmatch(endDateOngoingEvent, "[^,]+") do
if v == endDate then
if v:match('^%s*(.-)%s*$') == endDate then
-- set as true if end date specific that match endDateOngoingEvent
-- set as true if end date specific that match endDateOngoingEvent
ongoingEvent = true
ongoingEvent = true
שורה 132: שורה 132:
-- append the duration
-- append the duration
if showTimeDiff == 'כן' and duration~=nil and duration~='' then
if showTimeDiff == 'כן' and duration~=nil and duration~='' and res~=nil then
res = mw.ustring.format(dateRangeDiffFormat, res, duration)
res = mw.ustring.format(dateRangeDiffFormat, res, duration)
end
end