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