2,788
edits
TheNightAvl (talk | contribs) No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
local args = {} | local args = {} | ||
for inline in mw.ustring.gmatch(term, "<([^>]+)>") do | for inline in mw.ustring.gmatch(term, "<([^>]+)>") do | ||
local s = mw.text.split(inline, ":", true) | |||
args[s[1]] = s[2] or true | |||
end | end | ||
return mw.ustring.gsub(term, "<[^>]+>", ""), args | return mw.ustring.gsub(term, "<[^>]+>", ""), args |