Open main menu
Home
Random
Log in
Settings
Give to Wikipedia
About KidzSearch Wiki
Disclaimers
KidzSearch Wiki
Search
Changes
kidzsearch.com
>
wiki
>
Taxonbar/candidate
← Earlier diff
Newer diff →
Module:Taxonbar/candidate
(view source)
Revision as of 04:53, 5 May 2023
18 bytes added
,
04:53, 5 May 2023
no edit summary
Line 20:
Line 20:
--find Wikidata item
--find Wikidata item
if currentTitle.namespace == 0 then --mainspace
if currentTitle.namespace == 0 then --mainspace
−
local currentEntityId = mw.
wikibase
.
getEntityIdForCurrentPage
()
+
local currentEntityId = mw.
ext
.
UnlinkedWikibase.getEntityId
(
'enwiki'
)
if resolveEntity._id(currentEntityId) then
if resolveEntity._id(currentEntityId) then
−
currentItem = mw.
wikibase
.getEntity(currentEntityId)
+
currentItem = mw.
ext.UnlinkedWikibase
.getEntity(currentEntityId)
else --currentEntityId == nil/unresolvable
else --currentEntityId == nil/unresolvable
return categories[1]
return categories[1]
Wikibase-admin
Bots
,
Bureaucrats
,
Interface administrators
,
Suppressors
,
Administrators
115
edits