Content deleted Content added
test |
add unstrip option |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3:
local function MultiReplace(args)
local input = args[1] or "{{{1}}}"
if args.unstrip == "yes" then input = mw.text.unstrip(input) end
local plain = args.plain == "yes"
Line 10 ⟶ 12:
local change = {pattern = args[i * 2], repl = args[i * 2 + 1]}
if not change.repl then
return
}
end
changeList[i] = change
Line 45 ⟶ 47:
end
function p.main(frame, ...)
local args =
▲ args = frame:getParent().args
return MultiReplace(args)
end
|