Module:descendants: Difference between revisions

Jump to navigation Jump to search
Fixed bug in which descendants of direct borrowings were not showing up
No edit summary
(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 contained the path symbols > or _
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

Navigation menu