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
Revision as of 09:25, 6 February 2026 by Cranio is thinking (talk | contribs)

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
		-- escludo namespace tecnici/strani
		if id >= 0 and ns.name and ns.name ~= '' and not ns.isTalk then
			-- solo nome (testo), niente link
			table.insert(out, ns.name)
		end
	end

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

return p