יחידה:טווח זמנים: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 21: | שורה 21: | ||
local startDate = args['תאריך התחלה'] | local startDate = args['תאריך התחלה'] | ||
local endDate = args['תאריך סיום'] | local endDate = args['תאריך סיום'] | ||
local wikidataStartDate = args['תאריך התחלה-ויקינתונים'] or 'P580' | |||
local wikidataEndDate = args['תאריך סיום-ויקינתונים'] or 'P582' | |||
-- text to show if we have only end date. Example: "Last even - %s" where %s is time. nil - will not show end date | -- text to show if we have only end date. Example: "Last even - %s" where %s is time. nil - will not show end date | ||
| שורה 31: | שורה 34: | ||
if entityId~=nil then | if entityId~=nil then | ||
-- todo: support different fallbacks for properties | -- todo: support different fallbacks for properties | ||
startDate = WikidataSimpleFill(startDate, entityId, | startDate = WikidataSimpleFill(startDate, entityId, wikidataStartDate ) | ||
endDate = WikidataSimpleFill(endDate, entityId, ' | endDate = WikidataSimpleFill(endDate, entityId, wikidataEndDate ) | ||
if startDate == nil and endDate == nil then | |||
pointInTime = WikidataSimpleFill(pointInTime, entityId, 'P585' ) | |||
end | |||
if showTimeDiff == 'כן' then | if showTimeDiff == 'כן' then | ||