12,564
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
| Line 117: | Line 117: | ||
if i > 1 then | if i > 1 then | ||
if mw.ustring.match(arg, "^[^<]+:[^<]+") then arg = mw.ustring.gsub(arg, "^([^<]+):([^<]+)", "%2<alt:%1>") end | if mw.ustring.match(arg, "^[^<]+:[^<]+") then arg = mw.ustring.gsub(arg, "^([^<]+):([^<]+)", "%2<alt:%1>") end | ||
local pre_colon, post_colon = mw.ustring.match(arg, "<alt:([^>]*):([^>]*)>") -- store any colons in alt: parameter | |||
local term, term_args = m_inline.parse(arg) | local term, term_args = m_inline.parse(arg) | ||
if pre_colon or post_colon then term_args.alt = (pre_colon or "") .. ":" .. (post_colon or "") end-- resolve colons in alt: parameter | |||
if term_args["t"] then | if term_args["t"] then | ||