Module:descendants: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 165: Line 165:
if lang_change_arged then
if lang_change_arged then
for lang_arg in mw.ustring.gmatch(lang_change_arged, "%<([^%>]+)%>") do
for lang_arg in mw.ustring.gmatch(lang_change_arged, "%<([^%>]+)%>") do
terms[code][lang_arg] = true
if mw.ustring.find(lang_arg, "%:") then
local before, after = mw.ustring.match(lang_arg, "^([^%:]+)%:([^%:]+)$")
terms[code][before] = after
else
terms[code][lang_arg] = true
end
end
end
end
end

Navigation menu