Changes

2 bytes added ,  14:21, 25 September 2023
no edit summary
Line 490: Line 490:  
local function makeWikidataCategories(qid)
 
local function makeWikidataCategories(qid)
 
local ret
 
local ret
local qid = qid or mw.wikibase.getEntityIdForCurrentPage()
+
-- local qid = qid or mw.wikibase.getEntityIdForCurrentPage()
 
if mw.wikibase and current_page.namespace == 0 then
 
if mw.wikibase and current_page.namespace == 0 then
 
if qid and mw.wikibase.entityExists(qid) and mw.wikibase.getBestStatements(qid, "P625") and mw.wikibase.getBestStatements(qid, "P625")[1] then
 
if qid and mw.wikibase.entityExists(qid) and mw.wikibase.getBestStatements(qid, "P625") and mw.wikibase.getBestStatements(qid, "P625")[1] then