Module:Modules: Difference between revisions

From Guild of Archivists
(list modules)
 
m (1 revision imported)
 

Latest revision as of 07:26, 30 October 2015

Documentation for this module may be created at Module:Modules/doc

local p = {}
 
function p.modules(frame)
    local names = {};
    for k,v in pairs(package.loaded) do table.insert(names, k); end
    return table.concat{ '{|\n!Modules\n|-\n| ', table.concat( names, '\n|-\n| ' ), '\n|}' };
end

return p;