מייבאים כמותיים, בדוקי עריכות אוטומטית, ביוראקראטן, אינטערפעיס רעדאקטארן, emailconfirmed, אינטערפעיס אדמיניסטראַטאָרן, מנטרים, סיסאפן, צוות טכני, מייבאים, מעדכנים, אספקלריה רעדאקטארן
102,362
רעדאגירונגען
ק (הגהה) |
ק (הגהה) |
||
| שורה 176: | שורה 176: | ||
dateFormat = '%s – %s' | dateFormat = '%s – %s' | ||
end | end | ||
res = mw.ustring.format(dateFormat, HStartDate or startDate, | res = mw.ustring.format(dateFormat, HStartDate or startDate, HEndDate or endDate or 'הווה') | ||
-- try to fallback to automatic duration if duration is not available | -- try to fallback to automatic duration if duration is not available | ||
if showTimeDiff == 'כן' and duration==nil then | if showTimeDiff == 'כן' and duration==nil then | ||
| שורה 183: | שורה 183: | ||
end | end | ||
else | else | ||
res = | res = HStartDate or startDate | ||
end | end | ||
elseif startDate~=nil and endDate~=nil then | elseif startDate~=nil and endDate~=nil then | ||
| שורה 190: | שורה 190: | ||
dateFormat = '%s – %s' | dateFormat = '%s – %s' | ||
end | end | ||
res = mw.ustring.format(dateFormat, | res = mw.ustring.format(dateFormat, HStartDate or startDate, HEndDate or endDate) | ||
if showTimeDiff == 'כן' and duration==nil then | if showTimeDiff == 'כן' and duration==nil then | ||
local success, automaicDuration = pcall(Date.parseDateRange, res, diffFormat, true) | local success, automaicDuration = pcall(Date.parseDateRange, res, diffFormat, true) | ||
רעדאגירונגען