Jump to content

Module:Lua banner: Difference between revisions

More accurate wording for box on modules.
(use 0 for protection level of current page if it does not exist yet (for preview while creating a template), per Template talk:Lua#Lua error when a template page does not exist yet)
(More accurate wording for box on modules.)
Line 36: Line 36:
end
end
local moduleList = mList.makeList('bulleted', moduleLinks)
local moduleList = mList.makeList('bulleted', moduleLinks)
boxArgs.text = 'This ' ..
if mw.title.getCurrentTitle().contentModel == "Scribunto" then
(mw.title.getCurrentTitle():inNamespaces(828,829) and 'module' or 'template') ..
boxArgs.text = 'This module depends on the following other modules:' .. moduleList
' uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList
else
boxArgs.text = 'This template  uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList
end
end
end
boxArgs.type = 'notice'
boxArgs.type = 'notice'
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.