10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) (Fixed bug in which descendants of direct borrowings were not showing up) |
||
Line 79: | Line 79: | ||
for piece, delim in mw.ustring.gmatch(lang, "([^%>%_]+)([%>%_])") do | for piece, delim in mw.ustring.gmatch(lang, "([^%>%_]+)([%>%_])") do | ||
ancestor_path = ancestor_path .. piece | ancestor_path = ancestor_path .. piece | ||
if mw.ustring.gmatch(lang, "^%>") then | |||
ancestor_path = ">" .. ancestor_path | |||
end | |||
table.insert(ancestors[lang], ancestor_path) | table.insert(ancestors[lang], ancestor_path) | ||
ancestor_path = ancestor_path .. delim | ancestor_path = ancestor_path .. delim | ||
end | end | ||
else -- if ad hoc ancestors unspecified, i.e. the code does not | else -- if ad hoc ancestors unspecified, i.e. the code does not contain the path symbols > or _ | ||
if mw.ustring.find(lang, "[0-9]+$") then | if mw.ustring.find(lang, "[0-9]+$") then |