Changes

Jump to: navigation, search

Module:Message box

97 bytes removed, 06:07, 3 October 2013
load box types from the config page automatically
local categoryHandler = require('Module:Category handler').main
local yesno = require('Module:Yesno')
 
-- Load the configuration page.
local cfgTables = mw.loadData('Module:Message box/configuration')
-- Get a language object for formatDate and ucfirst.
boxType = box.getMboxType(self.nsid)
end
local cfgTables = mw.loadData('Module:Message box/configuration')
local cfg = cfgTables[boxType]
if not cfg then
self.isSmall = false
end
-- Add attributes, classes and styles.
end
return local p = {
box = box,
makeBox = makeBox,
mbox = makeWrapper('mbox'), ambox = makeWrapper('ambox'), cmbox = makeWrapper('cmbox'), fmbox = makeWrapper('fmbox'), imbox = makeWrapper('imbox'), ombox = makeWrapper('ombox'), tmbox = makeWrapper('tmbox')
}
 
for boxType in pairs(cfgTables) do
p[boxType] = makeWrapper(boxType)
end
 
return p
Anonymous user

Navigation menu