Module:Message box: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
use the same invalid type warning as the previous template |
load box types from the config page automatically |
||
வரிசை 5:
local categoryHandler = require('Module:Category handler').main
local yesno = require('Module:Yesno')
-- Load the configuration page.
-- Get a language object for formatDate and ucfirst.
வரி 131 ⟶ 134:
boxType = box.getMboxType(self.nsid)
end
▲ local cfgTables = mw.loadData('Module:Message box/configuration')
local cfg = cfgTables[boxType]
if not cfg then
வரி 182 ⟶ 184:
self.isSmall = false
end
-- Add attributes, classes and styles.
வரி 551 ⟶ 552:
end
local p = {
return {▼
box = box,
makeBox = makeBox,
mbox = makeWrapper('mbox')
ambox = makeWrapper('ambox'),▼
}
for boxType in pairs(cfgTables) do
end
| |||