Module:Lua banner: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
(Detect if on module page)
Line 36: Line 36:
end
end
local moduleList = mList.makeList('bulleted', moduleLinks)
local moduleList = mList.makeList('bulleted', moduleLinks)
boxArgs.text = 'This template uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList
boxArgs.text = 'This ' ..
(mw.title.getCurrentTitle():inNamespaces(828,829) and 'module' or 'template') ..
' uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList
end
end
boxArgs.type = 'notice'
boxArgs.type = 'notice'