Module:Team bracket tracking: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
if tostring(k):match('%-team[0-9]') then |
if tostring(k):match('%-team[0-9]') then |
||
if tostring(v):match('[Bb][Rr][^<>]*>[%s]*.[Nn][Bb][Ss][Pp]') then |
if tostring(v):match('[Bb][Rr][^<>]*>[%s]*.[Nn][Bb][Ss][Pp]') then |
||
return '[[Category:Pages using a tennis bracket with nbsp]]' |
|||
end |
|||
if tostring(v):match('[Bb][Rr][^<>]*>[%s]*<span[^<>]*>[%s]*.[Nn][Bb][Ss][Pp]') then |
|||
return '[[Category:Pages using a tennis bracket with nbsp]]' |
return '[[Category:Pages using a tennis bracket with nbsp]]' |
||
end |
end |
Revision as of 13:37, 17 April 2017
local p = {}
function p.tracking(frame)
local args = frame:getParent().args
for k, v in pairs(args) do
if tostring(k):match('%-team[0-9]') then
if tostring(v):match('[Bb][Rr][^<>]*>[%s]*.[Nn][Bb][Ss][Pp]') then
return '[[Category:Pages using a tennis bracket with nbsp]]'
end
if tostring(v):match('[Bb][Rr][^<>]*>[%s]*<span[^<>]*>[%s]*.[Nn][Bb][Ss][Pp]') then
return '[[Category:Pages using a tennis bracket with nbsp]]'
end
end
end
return ''
end
return p