Open main menu
Home
Random
Log in
Settings
Give to Wikipedia
About KidzSearch Wiki
Disclaimers
KidzSearch Wiki
Search
Changes
kidzsearch.com
>
wiki
>
Infobox road/map
← Earlier diff
Newer diff →
Module:Infobox road/map
(view source)
Revision as of 05:39, 5 May 2023
172 bytes added
,
05:39, 5 May 2023
no edit summary
Line 14:
Line 14:
end
end
if map == '' then
if map == '' then
−
local entity = mw.wikibase.getEntity() or {}
+
local currentEntityId = mw.ext.UnlinkedWikibase.getEntityId('enwiki')
+
if currentEntityId then
+
local entity = mw.wikibase.getEntity(
currentEntityId
) or {}
+
else
+
local entity = {}
+
end
local claims = entity.claims or {}
local claims = entity.claims or {}
local mapProp = claims.p15
local mapProp = claims.p15
Wikibase-admin
Bots
,
Bureaucrats
,
Interface administrators
,
Suppressors
,
Administrators
115
edits