Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Namespaces

From etna.foundation

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

local p = {}

function p.list(frame)
	local out = {}

	for id, ns in pairs(mw.site.namespaces) do
		if id >= 0 and ns.name and ns.name ~= '' and not ns.isTalk then
			table.insert(out, "* " .. ns.name)
		end
	end

	table.sort(out)
	return table.concat(out, "\n")
end

return p