45,345
edits
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
local modules = m_TableTools.compressSparseArray(args) | local modules = m_TableTools.compressSparseArray(args) | ||
local box = p.renderBox(modules) | local box = p.renderBox(modules) | ||
return box | |||
return box | |||
end | end | ||
Line 37: | Line 36: | ||
local moduleLinks = {} | local moduleLinks = {} | ||
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:' .. module) | ||
local maybeSandbox = mw.title.new(module .. '/sandbox') | local maybeSandbox = mw.title.new(module .. '/sandbox') | ||
if maybeSandbox.exists then | if maybeSandbox.exists then | ||
Line 58: | Line 57: | ||
boxArgs.image = '[[File:Lua-logo-nolabel.svg|30px|alt=|link=]]' | boxArgs.image = '[[File:Lua-logo-nolabel.svg|30px|alt=|link=]]' | ||
return m_MessageBox.main('mbox', boxArgs) | return m_MessageBox.main('mbox', boxArgs) | ||
end | end | ||
return p | return p |