"ମଡ୍ୟୁଲ:Message box" ପୃଷ୍ଠାର ସଂସ୍କରଣଗୁଡ଼ିକ ମଧ୍ୟରେ ତଫାତ
Content deleted Content added
use the same invalid type warning as the previous template |
load box types from the config page automatically |
||
୫ କ ଧାଡ଼ି:
local categoryHandler = require('Module:Category handler').main
local yesno = require('Module:Yesno')
-- Load the configuration page.
-- Get a language object for formatDate and ucfirst.
Line ୧୩୧ ⟶ ୧୩୪:
boxType = box.getMboxType(self.nsid)
end
▲ local cfgTables = mw.loadData('Module:Message box/configuration')
local cfg = cfgTables[boxType]
if not cfg then
Line ୧୮୨ ⟶ ୧୮୪:
self.isSmall = false
end
-- Add attributes, classes and styles.
Line ୫୫୧ ⟶ ୫୫୨:
end
local p = {
return {▼
box = box,
makeBox = makeBox,
mbox = makeWrapper('mbox')
ambox = makeWrapper('ambox'),▼
}
for boxType in pairs(cfgTables) do
end
|