বিষয়বস্তুতে চলুন

মডিউল:glossary/data

উইকিঅভিধান, মুক্ত অভিধান থেকে

এই মডিউলের জন্য মডিউল:glossary/data/নথি-এ নথিপত্র তৈরি করা হয়ে থাকতে পারে

local ugsub = mw.ustring.gsub

local anchors = {}

function format_anchor (anchor)
	return (ugsub(anchor, "[%s_]+", "_")) -- (multiple) spaces to underscores
end

for parameters in mw.title.new("পরিশিষ্ট:শব্দকোষ"):getContent():gmatch("{{anchor|([^}]+)}}") do
	for anchor in parameters:gmatch("[^|]+") do
		anchors[format_anchor(anchor)] = true
	end
end

return anchors