Module:snon-common: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
Line 47: Line 47:
if mw.ustring.find(word_l, "^-[f]") then
if mw.ustring.find(word_l, "^-[f]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-v")
ret.ecl = mw.ustring.gsub(word, "^(..)", "-v")
ret.len = mw.ustring.gsub(word, "^(..)", "-h")
elseif mw.ustring.find(word_l, "^-[vp]") then
elseif mw.ustring.find(word_l, "^-[vp]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-b")
ret.ecl = mw.ustring.gsub(word, "^(..)", "-b")
ret.len = mw.ustring.gsub(word, "^(..)","-gh")
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")
ret.len = mw.ustring.gsub(word, "^(..)", "-v")
elseif mw.ustring.find(word_l, "^-[s]") then
elseif mw.ustring.find(word_l, "^-[s]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-z")
ret.ecl = mw.ustring.gsub(word, "^(..)", "-z")
ret.len = mw.ustring.gsub(word, "^(..)", "-h")
elseif mw.ustring.find(word_l, "^-[zt]") then
elseif mw.ustring.find(word_l, "^-[zt]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-d")
ret.ecl = mw.ustring.gsub(word, "^(..)", "-d")