Module:Sandbox/BrandonXLF/4
Appearance
-- Sandbox, do not delete
local config = require('Module:Authority control/config').config
local ac = require('Module:Authority control')
local p = {}
function p.main(frame)
local args = { state = frame.args.state }
for _, conf in pairs(config) do
args[conf[1]] = mw.wikibase.getBestStatements('P'..conf.property, 'P1855')[1].qualifiers['P' .. conf.property][1].datavalue.value
end
local newParentFrame = frame:newChild{ title = 'Foo', args = args }
local newFrame = newParentFrame:newChild{ title = 'Template:Authority control', args = {} }
return require('Module:Suppress categories').main( ac.authorityControl( newFrame ) )
end
return p