Module:Coordinates: Difference between revisions

Jump to navigation Jump to search
Fulfill edit request, remove superfluous function call
(import coordinates from WikiData, per discussion)
(Fulfill edit request, remove superfluous function call)
Line 580:
end
elseif pFrame.args[1] == nil and mw.wikibase.getEntityObject() ~= nil then
local entity = mw.wikibase.entity.create( mw.wikibase.getEntityObject() )
if entity and entity.claims and entity.claims.P625 and
entity.claims.P625[1].mainsnak.snaktype == "value" then
Line 624:
if mw.wikibase and current_page.namespace == 0 then
local wikidata_cat
local entity = mw.wikibase.getEntitygetEntityObject()
if entity and entity.claims and entity.claims.p625P625 then
local snaktype = entity.claims.p625P625[01].mainsnak.snaktype
if snaktype == 'value' then
wikidata_cat = '[[Category:Coordinates on Wikidata]]' -- coordinates exist both here and on Wikidata, and can be compared
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu