10,731
edits
TheNightAvl (talk | contribs) m (Added * → headword functionality) |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 68: | Line 68: | ||
if after ~= "" then after = m_links.full_link({term = after, language = data.language}, "bold") end | if after ~= "" then after = m_links.full_link({term = after, language = data.language}, "bold") end | ||
local head_temp = mw.ustring.match(inflection[i], "(%S?%*%S?)") | local head_temp = mw.ustring.match(inflection[i], "(%S?%*%S?)") | ||
head_temp | head_temp = mw.ustring.gsub(head_temp, "%*", "<b>" .. data.term .. "</b>") | ||
table.insert(i_forms, before .. head_temp .. after) | table.insert(i_forms, before .. head_temp .. after) |