Module:dialect synonyms/yo/all-lects
Appearance
- The following documentation is located at Module:dialect synonyms/yo/all-lects/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
local export = {}
export.gloss = ""
export.syns = {}
local data = mw.loadData("Module:dialect synonyms/yo").varieties
local layer = {data}
while layer[1] do
local children = {}
for _,node in ipairs(layer) do
if node[1] then
for _,child in ipairs(node) do
table.insert(children,child)
end
else
export.syns[node.name] = {node.name}
end
end
layer = children
end
return export