Open main menu

Changes

Module:Authority control

6 bytes added, 14:22, 20 February 2015
use mw.wikibase.getEntityObject
--Wikidata fallback if requested
local item = mw.wikibase.getEntitygetEntityObject()
if item ~= nil and item.claims ~= nil then
for _, params in pairs( conf ) do
end
if canUseWikidata then
local wikidataIds = getIdsFromWikidata( item, 'pP' .. params[3] )
if wikidataIds[1] then
parentArgs[params[1]] = wikidataIds[1]
Anonymous user