Jump to content

Module:Sports table/WDL

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by CRwikiCA (talk | contribs) at 18:54, 10 October 2014 (Created page with ' function style_status() -- Declare status options -- ------------------------------------------------------------ -- NOTE: If you add to status_code, also a...'). 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)

function style_status()
	-- Declare status options
	-- ------------------------------------------------------------
	-- NOTE: If you add to status_code, also add to status_called and status_letters!!
	-- Or functionality will be compromised
	-- ------------------------------------------------------------
	local status_code, status_called = {}
	status_code = {	A='Advances to a further round', C='Champion', D='Disqualified', 
		E='Eliminated', H='Group host', O='Play-off winner', P='Promoted', Q='Qualified to the phase indicated',
		R='Relegated', T='Qualified, but not yet to the particular phase indicated'}
	status_called = {	A=false, C=false, D=false, E=false, H=false, O=false, P=false,
		Q=false, R=false, T=false}
	local status_letters = 'ACDEHOPQRT'
	
	return {status_code=status_code, status_called=status_called, status_letters=status_letters}
end