Modul:Lua banner: Unterschied zwischen den Versionen
Detect if on module page
Keine Bearbeitungszusammenfassung |
(Detect if on module page) |
||
Zeile 36: | Zeile 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' |