Anonymous user
Module:Coordinates: Difference between revisions
fix nil error
(responding to edit request, please revert if this causes a problem) |
(fix nil error) |
||
Line 495:
if mw.wikibase and current_page.namespace == 0 then
local entity = mw.wikibase.getEntityObject()
if entity and entity.claims and entity.claims.P625 and entity.claims.P625[0] then
local snaktype = entity.claims.P625[0].mainsnak.snaktype
if snaktype == 'value' then
|