恪別𡧲版𢯢𢷮𧵑「模庉:Message box」

n 𠊝替文本-「[[Bản mẫu:」成「[[板㑄:」
𥮋𢯢𢷮移動 Mobile web edit
n 𠊝替文本-「Bản mẫu:」成「Template:」
𥮋𢯢𢷮移動 Mobile web edit
 
(空顯示1番版於𡧲𧵑共𠊛用)
𣳔3: 𣳔3:


-- Load necessary modules.
-- Load necessary modules.
require('Mô đun:No globals')
require('Module:No globals')
local getArgs
local getArgs
local categoryHandler = require('Mô đun:Category handler')._main
local categoryHandler = require('Module:Category handler')._main
local yesno = require('Mô đun:Yesno')
local yesno = require('Module:Yesno')


-- Get a language object for formatDate and ucfirst.
-- Get a language object for formatDate and ucfirst.
𣳔216: 𣳔216:
'^[bB][aẢ][nN][%s_]+[mM][ẫẪ][uU][%s_]*:[%s_]*(.*)$'
'^[bB][aẢ][nN][%s_]+[mM][ẫẪ][uU][%s_]*:[%s_]*(.*)$'
) or self.name
) or self.name
templateName = 'Bản mẫu:' .. templateName
templateName = 'Template:' .. templateName
self.templateTitle = getTitleObject(templateName)
self.templateTitle = getTitleObject(templateName)
end
end
𣳔454: 𣳔454:
function MessageBox:renderCategories()
function MessageBox:renderCategories()
-- Convert category tables to strings and pass them through
-- Convert category tables to strings and pass them through
-- [[Mô đun:Category handler]].
-- [[Module:Category handler]].
return categoryHandler{
return categoryHandler{
main = table.concat(self.categories[0] or {}),
main = table.concat(self.categories[0] or {}),
𣳔596: 𣳔596:
function p.main(boxType, args, cfgTables)
function p.main(boxType, args, cfgTables)
args = viMapArgs(args)
args = viMapArgs(args)
local box = MessageBox.new(boxType, args, cfgTables or mw.loadData('Mô đun:Message box/configuration'))
local box = MessageBox.new(boxType, args, cfgTables or mw.loadData('Module:Message box/configuration'))
box:setParameters()
box:setParameters()
box:setCategories()
box:setCategories()