Module:head: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
m (Added * → headword functionality)
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.mw.ustring.gsub("%*", "<b>" .. data.term .. "</b>")
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)