Changes
Jump to navigation
Jump to search
fix pattern bug in p.main, and use a separate table for making the module links
local args = {}
for k, v in pairs(origArgs) do
v = v:match('^%s*(.-)%s*$')
if v ~= '' then
args[k] = v
boxArgs.text = '<strong class="error">Error: no modules specified</strong>'
else
local moduleLinks = {} for i, module in ipairs(modules) do moduleLinks[i] = string.format('[[:%s]]', module) end local moduleList = mList.makeList('bulleted', modulesmoduleLinks)
boxArgs.text = 'Uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList
end