יחידה:PropertyLink: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 1: | שורה 1: | ||
local FEMALE_FORM_PROPERTY = 'P2521' | local FEMALE_FORM_PROPERTY = 'P2521' | ||
local Date = require('Module:תאריך') | |||
--[[ | --[[ | ||
| שורה 243: | שורה 244: | ||
table.insert(resTable, formattedValue) | table.insert(resTable, formattedValue) | ||
elseif propValue['type'] == 'time' then | elseif propValue['type'] == 'time' then | ||
local timeValue = mw.wikibase.renderSnak( property.mainsnak ) | local timeValue =Date.newFromWikidataValue( property.mainsnak.datavalue.value ):toHebrewString() | ||
--local timeValue = mw.wikibase.renderSnak( property.mainsnak ) | |||
timeValue = mw.ustring.gsub(timeValue, '^(%d+ %a+) (%d+)$', '[[%1]] [[%2]]') | timeValue = mw.ustring.gsub(timeValue, '^(%d+ %a+) (%d+)$', '[[%1]] [[%2]]') | ||
table.insert(resTable, timeValue) | table.insert(resTable, timeValue) | ||