Module:Lua banner: Difference between revisions

... and for module doc pages
(More accurate wording for box on modules.)
(... and for module doc pages)
Line 36: Line 36:
end
end
local moduleList = mList.makeList('bulleted', moduleLinks)
local moduleList = mList.makeList('bulleted', moduleLinks)
if mw.title.getCurrentTitle().contentModel == "Scribunto" then
local title = mw.title.getCurrentTitle()
if title.subpageText == "doc" then
title = title.basePageTitle
end
if title.contentModel == "Scribunto" then
boxArgs.text = 'This module depends on the following other modules:' .. moduleList
boxArgs.text = 'This module depends on the following other modules:' .. moduleList
else
else
Anonymous user