Jump to content

Module:Protection banner: Difference between revisions

m
call it "reasonTable" throughout, rather than switching between "reasonTable" and "reasonsTable"
(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.