Module:lua banner: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 28: Line 28:
function p.renderBox(modules)
function p.renderBox(modules)
local boxArgs = {}
local boxArgs = {}
if #modules < 1 and mw.title.getCurrentTitle().nsText == "Template" then
table.insert(modules, "lua banner")
end
if #modules < 1 then
if #modules < 1 then
boxArgs.text = '<strong class="error">Error: no modules specified</strong>'
boxArgs.text = '<strong class="error">Error: no modules specified</strong>'