Module:pollasena-roots: Difference between revisions
Tag: Undo |
No edit summary |
||
| Line 148: | Line 148: | ||
required = not lang_options.optional, | required = not lang_options.optional, | ||
list = true, | list = true, | ||
} | } | ||
params["c"] = { | params["c"] = { | ||
| Line 183: | Line 182: | ||
local terms | local terms | ||
local separator = "" | local separator = "" | ||
if lang_options.roots then | if lang_options.roots then | ||
local items = m_param_utils.parse_list_with_inline_modifiers_and_separate_params({ | local items = m_param_utils.parse_list_with_inline_modifiers_and_separate_params({ | ||
| Line 198: | Line 197: | ||
separator = item.term | separator = item.term | ||
elseif item.term then | elseif item.term then | ||
if root_index > 1 and | if root_index > 1 and match(items[root_index - 1].term, "%-$") then -- no asterisk after hyphen | ||
if not item.alt then | if not item.alt then | ||
item.alt = item.term:gsub("^%*", "") | item.alt = item.term:gsub("^%*", "") | ||