Module:Delink: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
limit strip marker removal to ref tags
(account for lines containing only spaces)
(limit strip marker removal to ref tags)
Line 146:
local function _delink(args)
local text = args[1] or ""
if args.stripmarkersref == "yes" then
-- Remove stripany [[Help:Strip markers.]] Onlyrepresenting useref this if you knowtags. whatIn youmost aresituations doing!
-- In most situations this is not a good idea. See- only use it if you know what you [[Help:Stripare markers]].doing!
text = mw.ustring.gsub(text, "UNIQ.%w*%-ref%-%d*%-QINU", "")
end
if not (args.comments == "no") then
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu