Module:Message box: Difference between revisions
Jump to navigation
Jump to search
m Protected "Module:Message box": High-risk template: This is actually a high traffic/high use template that should at least be protected so only logged-in or autoconfirmed users can edit it; going with the former for now. No need for anonymous users to edit this template, and for non-administrators to move it. ([Edit=Allow only logged in users] (indefinite) [Move=Allow only administrators] (indefinite)) |
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 = 'Module:Message box/styles.css' | |||
box:setParameters() | box:setParameters() | ||
box:setCategories() | box:setCategories() | ||
return box:export() | return box:export() | ||
end | end | ||
function mt.__index(t, k) | function mt.__index(t, k) | ||
return function (frame) | return function (frame) |