Module:pollasena-roots: Difference between revisions
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 207: | Line 207: | ||
separator = item.term | separator = item.term | ||
elseif item.term then | elseif item.term then | ||
if root_index > 1 and match(items[root_index - 1].term, "%-$") then -- no asterisk after hyphen | if root_index > 1 and separator ~= "+" 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("^%*", "") | ||
| Line 264: | Line 264: | ||
} | } | ||
if lang_options.annotated and | if lang_options.annotated and args.parts then | ||
local referrals = {} | local referrals = {} | ||
for _, part in | for _, part in ipairs(args.parts) do | ||
local referral = m_links.full_link { | local referral = m_links.full_link({ | ||
lang = | lang = ancestor_lang, | ||
term = part, | term = part, | ||
} | }, "term") | ||
table.insert(referrals, referral) | table.insert(referrals, referral) | ||