Jump to content

Module:Lua banner: Difference between revisions

show link to module sandbox, requested by User:Andrybak
(Applying protection level tracking logic to modules too)
(show link to module sandbox, requested by User:Andrybak)
Line 34: Line 34:
for i, module in ipairs(modules) do
for i, module in ipairs(modules) do
moduleLinks[i] = string.format('[[:%s]]', module)
moduleLinks[i] = string.format('[[:%s]]', module)
local maybeSandbox = mw.title.new(module .. '/sandbox')
if maybeSandbox.exists then
moduleLinks[i] = moduleLinks[i] .. string.format(' ([[:%s|sandbox]])', maybeSandbox.fullText)
end
end
end
local moduleList = mList.makeList('bulleted', moduleLinks)
local moduleList = mList.makeList('bulleted', moduleLinks)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.