Module:Delink: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(account for lines containing only spaces)
(limit strip marker removal to ref tags)
Line 146: Line 146:
local function _delink(args)
local function _delink(args)
local text = args[1] or ""
local text = args[1] or ""
if args.stripmarkers == "yes" then
if args.ref == "yes" then
-- Remove strip markers. Only use this if you know what you are doing!
-- Remove any [[Help:Strip markers]] representing ref tags. In most situations
-- In most situations this is not a good idea. See [[Help:Strip markers]].
-- this is not a good idea - only use it if you know what you are doing!
text = mw.ustring.gsub(text, "UNIQ.-QINU", "")
text = mw.ustring.gsub(text, "UNIQ%w*%-ref%-%d*%-QINU", "")
end
end
if not (args.comments == "no") then
if not (args.comments == "no") then