Jump to content

Module:Team bracket tracking

Frae Wikipedia, the free beuk o knawledge
Reveesion aes o 22:47, 6 Mey 2018 bi AmaryllisGardener (Collogue | contribs) (Cræftit page wi "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('[B...")
(diff) ← Aulder reveision | see current reveision (diff) | Newer reveision → (diff)
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 uisin a team bracket wi nbsp]]'
			end
			if tostring(v):match('[Bb][Rr][^<>]*>[%s]*<span[^<>]*>[%s]*.[Nn][Bb][Ss][Pp]') then
				return '[[Category:Pages uisin a team bracket wi nbsp]]'
			end
		end
	end
	return ''
end

return p