Modul:0glossary/data

A Wikiszótárból, a nyitott szótárból

A modult a Modul:0glossary/data/doc lapon tudod dokumentálni

local anchors = {}

function format_anchor (anchor)
	anchor = mw.ustring.gsub(anchor, " +", "_") -- spaces to underscores
	return anchor
end

for parameters in mw.title.new("Appendix:Glossary"):getContent():gmatch("{{anchor|([^}]+)}}") do
	for anchor in parameters:gmatch("[^|]+") do
		anchors[format_anchor(anchor)] = true
	end
end

return anchors