Leaguepedia | League of Legends Esports Wiki
Advertisement
Leaguepedia | League of Legends Esports Wiki

Documentation for this module may be created at Module:TournamentRosterPool/doc

local util_args = require('Module:ArgsUtil')
local util_cargo = require("Module:CargoUtil")
local util_html = require("Module:HtmlUtil")
local util_map = require('Module:MapUtil')
local util_table = require("Module:TableUtil")
local util_text = require("Module:TextUtil")
local util_vars = require("Module:VarsUtil")
local i18n = require("Module:I18nUtil")
local lang = mw.getLanguage('en')
local h = {}
local p = {}
function p.open(frame)
	local args = util_args.merge()
	p.setPool(args.text)
	local poolText = mw.html.create('div')
		:addClass('rotated-text')
	poolText:tag('div')
		:addClass('rotated-text-inner')
		:wikitext(args.text)
	return '<div class="pool">' .. tostring(poolText) .. '<div class="pool-participants">'
end

function p.close(frame)
	return '</div></div>'
end

function p.getPool()
	return util_vars.getVar('currentPool')
end

function p.setPool(pool)
	return util_vars.setVar('currentPool', pool)
end

return p
Advertisement