10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) 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 |