2,788
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
local s = mw.text.split(inline, ":", true) | local s = mw.text.split(inline, ":", true) | ||
args[s[1]] = s[2] or true | args[s[1]] = s[2] or true | ||
if #s > 2 then mw.addWarning("multiple : found in inline string") end | |||
end | end | ||
return mw.ustring.gsub(term, "<[^>]+>", ""), args | return mw.ustring.gsub(term, "<[^>]+>", ""), args |