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: | 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: | return documentationObj:makeReasonTable() | ||
end | end | ||