Module:Sandbox/BrandonXLF/4: Difference between revisions

Content deleted Content added
No edit summary
Fix
Line 1:
-- Sandbox, do not delete
local config = require('Module:Authority control/config').config
local ac = require('Module:Authority control')
local p = {}
 
function p.foo main( frame )
return mw.title.new('Template:Youtube'):getContent()
end
 
function p.main( frame )
local args = { state = frame.args.state }
for _, conf in pairs( ac.conf config) do
args[conf[1]] = mw.wikibase.getBestStatements('P'..conf.property, 'P1855')[1].qualifiers['P' .. conf.property][1].datavalue.value
args[conf[1]] = conf[5]
end