Module:GameUtil

From Leaguepedia | League of Legends Esports Wiki
Jump to: navigation, search
To edit the documentation or categories for this module, click here.
local util_args = require('Module:ArgsUtil')
local util_text = require('Module:TextUtil')
local i18n = require('Module:i18nUtil')

local h = {}
local p = {
	players_per_team = 5,
	side_names = {
		'Blue', 'Red',
		['1'] = 'Blue',
		['2'] = 'Red'
	},
	years = { 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 },
	store_player_league_history = true, -- do we store to PlayerLeagueHistory from InfoboxPlayer? will prevent needing to sync a normally-unneeded dependency
}

function p.linkPatch(str)
	if not str then return nil end
	return util_text.intLink(('Patch %s'):format(str), str)
end

return p