Modul:Protection banner: Unterschied zwischen den Versionen
K
call it "reasonTable" throughout, rather than switching between "reasonTable" and "reasonsTable"
(add a Documentation class for autogenerating the reason documentation) |
K (call it "reasonTable" throughout, rather than switching between "reasonTable" and "reasonsTable") |
||
Zeile 801: | Zeile 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 = {} | ||
Zeile 879: | Zeile 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 | ||