Module:descendants: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
No edit summary
 
Line 77: Line 77:
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
if mw.ustring.match(lang, "^%>") then
ancestor_path = ">" .. ancestor_path
ancestor_path = ">" .. ancestor_path
end
end