વિભાગ:Coordinates: આવૃત્તિઓ વચ્ચેનો તફાવત

Content deleted Content added
નાનું more friendly maps for mismatch cases
લીટી ૧૩૨:
wikidata3 = '[[Category:Pages with local coordinates and mismatching wikidata coordinates]]',
wikidata4 = '[[Category:Pages with local coordinates and missing wikidata coordinates]]',
wikidata5 = '[[Category:Pages with locations and wikidata code to wrong type of entry]]',
globe = '[[Category:Media with %s locations]]',
default = '[[Category:Media with default locations]]',
Line ૨૦૮ ⟶ ૨૦૯:
end
end
-- compare coordinates
local cat = ''
Line ૨૪૪ ⟶ ૨૪૬:
end
end
-- verify proper P31 (instance of). List is based on https://www.wikidata.org/wiki/Property_talk:P625
local QCodes = {
Q5 = 1, -- human
Q783794 = 1, -- company
Q4167410 = 1, -- Wikimedia disambiguation page
Q4830453 = 1, -- business enterprise
P247 = 1, -- COSPAR ID
P1282 = 1, -- OpenStreetMap tag or key
Q11879590 = 1, -- female given name
Q202444 = 1, -- given name
Q12308941 = 1, -- male given name
Q4167836 = 1, -- Wikimedia category
}
s = entity:getBestStatements( 'P31' )
if s[1] and s[1].mainsnak.datavalue.value['numeric-id'] then
local instanceOf = string.format('Q%i',s[1].mainsnak.datavalue.value['numeric-id'])
if QCodes[instanceOf] then
cat = CoorCat.wikidata5
end
end
return lat1, lon1, q, cat, dist_str
end