Module:Lua banner: Difference between revisions
... and for module doc pages
m (1 revision imported) |
(... and for module doc pages) |
||
Line 36: | Line 36: | ||
end | end | ||
local moduleList = mList.makeList('bulleted', moduleLinks) | local moduleList = mList.makeList('bulleted', moduleLinks) | ||
local title = mw.title.getCurrentTitle() | |||
if title.subpageText == "doc" then | |||
' uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList | title = title.basePageTitle | ||
end | |||
if title.contentModel == "Scribunto" then | |||
boxArgs.text = 'This module depends on the following other modules:' .. moduleList | |||
else | |||
boxArgs.text = 'This template uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList | |||
end | |||
end | end | ||
boxArgs.type = 'notice' | boxArgs.type = 'notice' |