Module:Team bracket tracking

From blackwiki
Revision as of 19:27, 12 April 2017 by blackwiki>Frietjes (Created page with 'local p = {} function p.tracking(frame) local args = frame:getParent().args for k, v in pairs(args) do local num = tostring(k):match('^RD[0-9]-team([0-9][0-...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
		local num = tostring(k):match('^RD[0-9]-team([0-9][0-9]*)$')
		if num then
			if tostring(v):match('>[%s]*&[Nn][Bb][Ss][Pp]') then
				return '[[Category:Pages using a tennis bracket with nbsp]]'
			end
		end
	end
	return ''
end

return p