Module:Mod List

local p = {}

p.sort = function(t) if f ~= mw.getCurrentFrame then f = mw.getCurrentFrame end args = f:getParent.args

local list = f:callParserFunction{ name = '#dpl:', args = { namespace = '', category = t, --nottitlematch = '%/%', allowcachedresults = 'true' } }       list = list:gsub("", "¦"):sub(9,-11) local mods = {} for mod in list:gmatch("([^¦]+)") do           table.insert(mods,mod) end table.sort(mods) local list = "" for _,mod in ipairs(mods) do           list = list .. mod .. " &bull; " end return list:sub(1,-20) end

p.major = function(f) return p.sort('Mods') end

p.minor = function(f) return p.sort('Minor Mods') end

return p