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

ק
1 רעוויזיע אימפארטירט: אימפארטירט פון די יידישע וויקיפעדיע, זע ביישטייערער ליסטע
ק (הפרדה של פרמטר "הווה" לפי פסיק בלבד; trim ערך פרמטר "הווה")
ק (1 רעוויזיע אימפארטירט: אימפארטירט פון די יידישע וויקיפעדיע, זע ביישטייערער ליסטע)
צייכן: צוריקגעשטעלט
שורה 80: שורה 80:
-- set default ongoingEvent as false
-- set default ongoingEvent as false
ongoingEvent = false
ongoingEvent = false
for v in string.gmatch(endDateOngoingEvent, "[^,]+") do
for v in string.gmatch(endDateOngoingEvent, "[^,%s]+") do
if v:match('^%s*(.-)%s*$') == endDate then
if v == 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~='' and res~=nil then
if showTimeDiff == 'כן' and duration~=nil and duration~='' then
res = mw.ustring.format(dateRangeDiffFormat, res, duration)
res = mw.ustring.format(dateRangeDiffFormat, res, duration)
end
end