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

יצירת דף עם התוכן "local Date = require('Module:תאריך') local Arguments = require( "Module:Arguments" ) local function WikidataSimpleFill(parameter, entityId, property) --..."
 
מאין תקציר עריכה
שורה 58: שורה 58:
-- 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
local success, automaicDuration = pcall(dateModule.parseDateRange, startDate, diffFormat, true)
local success, automaicDuration = pcall(Date.parseDateRange, startDate, diffFormat, true)
if success then duration = automaicDuration end
if success then duration = automaicDuration end
end
end
שורה 67: שורה 67:
res = mw.ustring.format('%s - %s', startDate, endDate)
res = mw.ustring.format('%s - %s', startDate, endDate)
if showTimeDiff == 'כן' and duration==nil then
if showTimeDiff == 'כן' and duration==nil then
local success, automaicDuration = pcall(dateModule.parseDateRange, dateRange, diffFormat, true)
local success, automaicDuration = pcall(Date.parseDateRange, dateRange, diffFormat, true)
if success then duration = automaicDuration end
if success then duration = automaicDuration end
end
end