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: Difference between revisions

From etna.foundation
No edit summary
No edit summary
 
Line 5: Line 5:


for id, ns in pairs(mw.site.namespaces) do
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
if id >= 0 and ns.name and ns.name ~= '' and not ns.isTalk then
-- solo nome (testo), niente link
table.insert(out, "* " .. ns.name)
table.insert(out, ns.name)
end
end
end
end

Latest revision as of 09:26, 6 February 2026

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