Module:Taxonbar: Difference between revisions

no edit summary
>Izno
(use if preview, note about a bug)
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 144: Line 144:
local parentArgs = copyTable(frame:getParent().args)
local parentArgs = copyTable(frame:getParent().args)
local currentTitle = mw.title.getCurrentTitle()
local currentTitle = mw.title.getCurrentTitle()
local currentEntityId = mw.wikibase.getEntityIdForCurrentPage()
local stringArgs = false
local stringArgs = false
local fromTitleCount, firstRow, rowCount = 1, 0, 0
local fromTitleCount, firstRow, rowCount = 1, 0, 0
Line 210: Line 208:
end
end
end
end
elseif resolveEntity._id(currentEntityId) then
currentItem = mw.wikibase.getEntity(currentEntityId)
else --currentEntityId == nil/unresolvable
categories[6] = '[[Category:Taxonbar pages requiring a Wikidata item]]'
end
end
if currentItem then
if currentItem then