Module:Lua banner: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (1 revision imported) |
(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) |