Module:snon-common: Difference between revisions
No edit summary |
No edit summary |
||
| Line 48: | Line 48: | ||
ret.ecl = mw.ustring.gsub(word, "^(..)", "-v") | ret.ecl = mw.ustring.gsub(word, "^(..)", "-v") | ||
ret.len = mw.ustring.gsub(word, "^(..)", "-h") | ret.len = mw.ustring.gsub(word, "^(..)", "-h") | ||
elseif mw.ustring.find(word_l, "^-[ | elseif mw.ustring.find(word_l, "^-[v]") then | ||
ret.ecl = mw.ustring.gsub(word, "^(..)", "-b") | ret.ecl = mw.ustring.gsub(word, "^(..)", "-b") | ||
ret.len = mw.ustring.gsub(word, "^(..)","-gh") | ret.len = mw.ustring.gsub(word, "^(..)","-gh") | ||
elseif mw.ustring.find(word_l, "-^[p]") then | |||
ret.ecl = mw.ustring.gsub(word, "^(..)", "-b") | |||
ret.len = mw.ustring.gsub(word, "^(..)", "-f") | |||
elseif mw.ustring.find(word_l, "^-[b]") then | elseif mw.ustring.find(word_l, "^-[b]") then | ||
ret.ecl = mw.ustring.gsub(word, "^(..)", "-m") | ret.ecl = mw.ustring.gsub(word, "^(..)", "-m") | ||
| Line 57: | Line 60: | ||
ret.ecl = mw.ustring.gsub(word, "^(..)", "-z") | ret.ecl = mw.ustring.gsub(word, "^(..)", "-z") | ||
ret.len = mw.ustring.gsub(word, "^(..)", "-h") | ret.len = mw.ustring.gsub(word, "^(..)", "-h") | ||
elseif mw.ustring.find(word_l, "^-[ | elseif mw.ustring.find(word_l, "^-[z]") then | ||
ret.ecl = mw.ustring.gsub(word, "^(..)", "-d") | |||
elseif mw.ustring.find(word_l, "^-[t]") then | |||
ret.ecl = mw.ustring.gsub(word, "^(..)", "-d") | ret.ecl = mw.ustring.gsub(word, "^(..)", "-d") | ||
elseif mw.ustring.find(word_l, "^-[d]") then | elseif mw.ustring.find(word_l, "^-[d]") then | ||