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. |
if args.ref == "yes" then |
||
-- Remove |
-- Remove any [[Help:Strip markers]] representing ref tags. In most situations |
||
-- |
-- this is not a good idea - only use it if you know what you are doing! |
||
text = mw.ustring.gsub(text, "UNIQ |
text = mw.ustring.gsub(text, "UNIQ%w*%-ref%-%d*%-QINU", "") |
||
end |
end |
||
if not (args.comments == "no") then |
if not (args.comments == "no") then |