Jump to content

Module:Team bracket tracking

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Frietjes (talk | contribs) at 19:27, 12 April 2017 (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-...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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