Module:Message box: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
local getArgs
local getArgs
local yesno = require('Module:Yesno')
local yesno = require('Module:Yesno')
local templatestyles = 'Module:Message box/styles.css'


-- Get a language object for formatDate and ucfirst.
-- Get a language object for formatDate and ucfirst.
Line 603: Line 604:
function p.main(boxType, args, cfgTables)
function p.main(boxType, args, cfgTables)
local box = MessageBox.new(boxType, args, cfgTables or mw.loadData(CONFIG_MODULE))
local box = MessageBox.new(boxType, args, cfgTables or mw.loadData(CONFIG_MODULE))
local templatestyles = mw.loadData(CONFIG_MODULE)
box:setParameters()
box:setParameters()
box:setCategories()
box:setCategories()
return box:export()
return box:export()
end
end
function p.templateStyle( frame, src )
local function templatestyles(frame, src)
  return frame:extensionTag( 'templatestyles', '', { src = src } );
  return frame:extensionTag( 'templatestyles', '', { src = src } );
end
end
function mt.__index(t, k)
function mt.__index(t, k)
return function (frame)
return function (frame)