Module:Bracket/Wiki

local util_esports = require('Module:EsportsUtil') local util_text = require('Module:TextUtil') --local m_champion = require('Module:Champion') local m_country = require('Module:Country') local m_region = require('Module:Region') local m_team = require('Module:Team')

local p = {}

function p.teamDisplay(tbl, data, teamstyle) local teamstyle = teamstyle or (data.player and 'onlyimagelinkedshort') or 'rightshortlinked' if data.region then tbl:wikitext(m_region.onlyimage(data.region)) end if data.flag then tbl:wikitext(m_country.onlyimage(data.flag)) end if data.team then tbl:wikitext(m_team[teamstyle](data.team)) end --	if data.champion then --		tbl:wikitext(m_champion.onlyimage(data.champion)) --	end if data.playerflag then tbl:wikitext(m_country.onlyimage(data.playerflag)) end if data.player then tbl:wikitext(' ',util_text.printIntLink(data.playerlink, data.player)) end if data.players then tbl:wikitext(' ',util_esports.concatLinksFromStrings(data.playerlinks, data.players)) end if data.literal then tbl:wikitext(data.literal) end if data.footnoten then tbl:tag('sup'):wikitext(data.footnoten) end end

return p