10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 23: | Line 23: | ||
if mw.ustring.match(to_process, "%*[^%*]+%*") then | if mw.ustring.match(to_process, "%*[^%*]+%*") then | ||
local pre = mw.ustring.gmatch(to_process, "^([^%*]+)%*") | local pre = mw.ustring.gmatch(to_process, "^([^%*]+)%*") | ||
local | local translink = mw.ustring.gmatch(to_process, "%*([^%*]+)%*") | ||
to_process = mw.ustring.sub(to_process, mw.ustring.len(pre) + mw.ustring.len( | to_process = mw.ustring.sub(to_process, mw.ustring.len(pre) + mw.ustring.len(translink) + 2) | ||
translink = m_links.full_link{term = translink, language = language} | |||
bytext = bytext .. pre .. link | bytext = bytext .. pre .. link | ||
else | else |