Module:Lua banner: Difference between revisions

Detect if on module page
imported>Sau226BOT
m (1 revision: Mass importing infoboxes from en.wp)
w>Ahecht
(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'
Anonymous user