ק
הפעיל הגנה על הדף "יחידה:טווח זמנים": יחידה, דף רגיש, בעקבות השחתה ([עריכה=רק בדוקי עריכות אוטומטית מורשים] (בלתי מוגבלת בזמן) [העברה=רק בדוקי עריכות אוטומטית מורשים] (בלתי מוגבלת בזמן))
ק (1 רעוויזיע אימפארטירט פון wikipedia:he:יחידה:טווח_זמנים) |
ק (הפעיל הגנה על הדף "יחידה:טווח זמנים": יחידה, דף רגיש, בעקבות השחתה ([עריכה=רק בדוקי עריכות אוטומטית מורשים] (בלתי מוגבלת בזמן) [העברה=רק בדוקי עריכות אוטומטית מורשים] (בלתי מוגבלת בזמן))) |
||
| שורה 80: | שורה 80: | ||
-- set default ongoingEvent as false | -- set default ongoingEvent as false | ||
ongoingEvent = false | ongoingEvent = false | ||
for v in string.gmatch(endDateOngoingEvent, "[^, | 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 | ||