Module:snon-mut: Difference between revisions
No edit summary |
No edit summary |
||
| Line 70: | Line 70: | ||
["ecl"] = {}, | ["ecl"] = {}, | ||
["len"] = {}, | ["len"] = {}, | ||
["temp_len"] = {type = "boolean"}, | |||
["temp_ecl"] = {type = "boolean"}, | |||
} | } | ||
| Line 81: | Line 84: | ||
for k, v in pairs(ret) do | for k, v in pairs(ret) do | ||
if v == "-" then | if v == "-" then | ||
links[k] = "''not applicable''" | links[k] = (args.temp_len or args.temp_ecl) and m_l.full_link{lang = lang, term = ret.radical} or "''not applicable''" | ||
else | else | ||
links[k] = m_l.full_link{lang = lang, term = v} | links[k] = m_l.full_link{lang = lang, term = v} | ||
end | end | ||
end | |||
if args.temp_len then | |||
return links.lenition | |||
end | |||
if args.temp_ecl then | |||
return links.eclipsis | |||
end | end | ||