10,731
edits
TheNightAvl (talk | contribs) mNo edit summary Tag: Manual revert |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 63: | Line 63: | ||
local temp_links = {} | local temp_links = {} | ||
if mw.ustring.find(inflection[i], "%*") then | if mw.ustring.find(inflection[i], "%*") then | ||
local before = mw.ustring.match(inflection[i], "^([^%*]+)% | local before = mw.ustring.match(inflection[i], "^([^%*]+)%s*%*") or "" | ||
local after = mw.ustring.match(inflection[i], "%*% | local after = mw.ustring.match(inflection[i], "%*%s*([^%*]+)$") or "" | ||
if before ~= "" then before = m_links.full_link({term = before, language = data.language}, "bold") end | if before ~= "" then before = m_links.full_link({term = before, language = data.language}, "bold") end | ||
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], "(% | local head_temp = mw.ustring.match(inflection[i], "(%s*%*%s*)") | ||
head_temp = mw.ustring.gsub(head_temp, "%*", "<b>" .. data.term .. "</b>") | head_temp = mw.ustring.gsub(head_temp, "%*", "<b>" .. data.term .. "</b>") | ||