Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Protection banner: Difference between revisions

From the Lonsdale Battalion wiki
Content deleted Content added
add a Documentation class for autogenerating the reason documentation
m call it "reasonTable" throughout, rather than switching between "reasonTable" and "reasonsTable"
Line 801: Line 801:
end
end


function Documentation:makeReasonsTable()
function Documentation:makeReasonTable()
-- Get the data from the cfg.banners table.
-- Get the data from the cfg.banners table.
local rowData = {}
local rowData = {}
Line 879: Line 879:
local cfg = mw.loadData('Module:Protection banner/config')
local cfg = mw.loadData('Module:Protection banner/config')
local documentationObj = Documentation:new(cfg)
local documentationObj = Documentation:new(cfg)
return documentationObj:makeReasonsTable()
return documentationObj:makeReasonTable()
end
end


Cookies help us deliver our services. By using our services, you agree to our use of cookies.