Module:Delink: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
add (opt-in) code for removing strip markers
(make each parse optional)
(add (opt-in) code for removing strip markers)
Line 138:
local function _delink(args)
local text = args[1] or ""
if args.stripmarkers == "yes" then
-- Remove strip markers. Only use this if you know what you are doing!
-- In most situations this is not a good idea. See [[Help:Strip markers]].
text = mw.ustring.gsub(text, "UNIQ.-QINU", "")
end
if not (args.comments == "no") then
text = mw.ustring.gsub(text, "<!%-%-.-%-%->", "") -- Remove html comments.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu