יחידה:Map: הבדלים בין גרסאות בדף
תוכן שנמחק תוכן שנוסף
אין תקציר עריכה |
שיפור ביצועים |
||
שורה 232:
}
if (args.wikidata ~= nil) then
local e = mw.wikibase.getEntity(args.wikidata)▼
if e.claims ~= nil then▼
if (not tagArgs.latitude or not tagArgs.longitude) then
local wikidataCoords= mw.wikibase.getBestStatements( args.wikidata , 'P625' )
if wikidataCoords ~= nil and #wikidataCoords > 0 then
tagArgs.latitude = e.claims.P625[1].mainsnak.datavalue.value.latitude▼
tagArgs.
▲ tagArgs.
end
end
-- always try to fetch title, to get a reference in 'Wikidata entities used in this page'
title =
end
if not args.title then
שורה 253 ⟵ 254:
--end
if not tagArgs.image then
local wikidataImage= mw.wikibase.getBestStatements( args.wikidata , 'P18' )
if wikidataImage ~= nil and #wikidataImage>0 then
tagArgs.image =
end
end
▲ end
end
if not args.title then
|