Difference between revisions of "Module:Team bracket tracking"
Jump to navigation
Jump to search
blackwiki>Frietjes |
blackwiki>Frietjes |
||
| Line 4: | Line 4: | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
for k, v in pairs(args) do | for k, v in pairs(args) do | ||
| − | if tostring(k):match('^RD[0-9]-team[0-9] | + | if tostring(k):match('^RD[0-9]%-team[0-9]') then |
| − | if tostring(v):match('>[%s]* | + | if tostring(v):match('>[%s]*.[Nn][Bb][Ss][Pp]') then |
| − | return '[[Category:Pages using a tennis bracket with nbsp]]' | + | return '[[Category:Pages using a tennis bracket with nbsp|1]]' |
end | end | ||
end | end | ||
Revision as of 22:08, 12 April 2017
Documentation for this module may be created at Module:Team bracket tracking/doc
local p = {}
function p.tracking(frame)
local args = frame:getParent().args
for k, v in pairs(args) do
if tostring(k):match('^RD[0-9]%-team[0-9]') then
if tostring(v):match('>[%s]*.[Nn][Bb][Ss][Pp]') then
return '[[Category:Pages using a tennis bracket with nbsp|1]]'
end
end
end
return ''
end
return p