Module:TagChecker

local p = {}

p.findRef = function(frame) local args = frame.args if mw.ustring.find(args[1], '--ref-') == 9 then -- if it starts with a reference, then return args[1] -- return the original text else return ' ' .. args[1] -- otherwise, return a space + the original text end end

return p