Module:glossary/data: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(Created page with "local anchors = {} for anchor in mw.title.new("Appendix:Glossary"):getContent():gmatch("{{anchor|([^}]+)}}") do anchors[anchor] = true end return anchors")
 
No edit summary
 
Line 1: Line 1:
local anchors = {}
local anchors = {}


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


return anchors
return anchors

Latest revision as of 16:32, 24 March 2021



local anchors = {}

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

return anchors