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

To edit the documentation or categories for this module, click here.


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 LCS = require('Module:LuaClassSystem')

local p = LCS.class.abstract()

function p:init() end

function p:concatRoleHeaders(OUTRO_HEADERS, ROLE_HEADERS)
	return OUTRO_HEADERS
end

function p:printLinkToTextOnly() end

function p:makeColorPicker() end

function p:initColumnClasses(winner)
	return {
		['Blue'] = winner == 1 and { 'pbh-winner' } or {},
		['Red'] = winner == 2 and { 'pbh-winner' } or {},
	}
end

function p:getScore(row)
	return ((row.Team1Score  or '?') .. ' - ' .. (row.Team2Score or '?')) or string.format(
		'%s - %s, %s',
		row.Team1Score,
		row.Team2Score,
		row.Winner
	)
end

function p:initCellClasses(classes, label)
	if not classes[label] then classes[label] = {} end
end

return p
Advertisement