diff --git a/lua/wikis/commons/PlayerTeamRoles.lua b/lua/wikis/commons/PlayerTeamRoles.lua new file mode 100644 index 00000000000..a75ac28f681 --- /dev/null +++ b/lua/wikis/commons/PlayerTeamRoles.lua @@ -0,0 +1,16 @@ +--- +-- @Liquipedia +-- page=Module:PlayerTeamRoles +-- +-- Please see https://github.com/Liquipedia/Lua-Modules to contribute +-- + +---@type table +local playerTeamRoles = { + ['captain'] = {category = 'Captains', display = 'Captain', iconFa = 'captain'}, + ['igl'] = {category = 'In-game leaders', display = 'In-game leader', iconFa = 'captain', abbreviation = 'IGL'}, +} + +playerTeamRoles['in-game leader'] = playerTeamRoles.igl + +return playerTeamRoles diff --git a/lua/wikis/commons/Role/Util.lua b/lua/wikis/commons/Role/Util.lua index 7cbafd93112..a28aa16c2d7 100644 --- a/lua/wikis/commons/Role/Util.lua +++ b/lua/wikis/commons/Role/Util.lua @@ -32,6 +32,7 @@ RoleUtil.ROLE_TYPE = { CONTRACT = 'contract', STAFF = 'staff', INGAME = 'ingame', + TEAMROLE = 'teamrole', UNKNOWN = 'unknown', } @@ -73,6 +74,8 @@ function RoleUtil._createRoleData(roleKey) return RoleUtil.ROLE_TYPE.CONTRACT elseif Roles.StaffRoles[key] then return RoleUtil.ROLE_TYPE.STAFF + elseif Roles.PlayerTeamRoles[key] then + return RoleUtil.ROLE_TYPE.TEAMROLE elseif Roles.InGameRoles and Roles.InGameRoles[key] then return RoleUtil.ROLE_TYPE.INGAME else diff --git a/lua/wikis/commons/Roles.lua b/lua/wikis/commons/Roles.lua index e4473004806..93df4c70432 100644 --- a/lua/wikis/commons/Roles.lua +++ b/lua/wikis/commons/Roles.lua @@ -11,13 +11,15 @@ local Table = Lua.import('Module:Table') local ContractRoles = Lua.import('Module:ContractRoles', {loadData = true}) local StaffRoles = Lua.import('Module:StaffRoles', {loadData = true}) +local PlayerTeamRoles = Lua.import('Module:PlayerTeamRoles', {loadData = true}) local InGameRoles = Lua.requireIfExists('Module:InGameRoles', {loadData = true}) local Roles = { ContractRoles = ContractRoles, StaffRoles = StaffRoles, InGameRoles = InGameRoles, - All = Table.merge(ContractRoles, StaffRoles, InGameRoles) + PlayerTeamRoles = PlayerTeamRoles, + All = Table.merge(ContractRoles, StaffRoles, InGameRoles, PlayerTeamRoles) } return Roles diff --git a/lua/wikis/counterstrike/InGameRoles.lua b/lua/wikis/counterstrike/InGameRoles.lua index cf66a73d099..016d9041d68 100644 --- a/lua/wikis/counterstrike/InGameRoles.lua +++ b/lua/wikis/counterstrike/InGameRoles.lua @@ -8,7 +8,6 @@ ---@type table local inGameRoles = { ['awper'] = {category = 'AWPers', display = 'AWPer'}, - ['igl'] = {category = 'In-game leaders', display = 'In-game leader'}, ['lurker'] = {category = 'Lurkers', display = 'Lurker'}, ['support'] = {category = 'Support players', display = 'Support'}, ['entry'] = {category = 'Entry fraggers', display = 'Entry'}, diff --git a/lua/wikis/dota2/InGameRoles.lua b/lua/wikis/dota2/InGameRoles.lua index ff3db70e1cc..af3f2740bd2 100644 --- a/lua/wikis/dota2/InGameRoles.lua +++ b/lua/wikis/dota2/InGameRoles.lua @@ -11,7 +11,6 @@ local inGameRoles = { ['mid'] = {category = 'Solo middle players', display = 'Solo Middle'}, ['offlane'] = {category = 'Offlaners', display = 'Offlaner'}, ['support'] = {category = 'Support players', display = 'Support'}, - ['captain'] = {category = 'Captains', display = 'Captain'}, } inGameRoles['solo middle'] = inGameRoles.mid diff --git a/lua/wikis/freefire/InGameRoles.lua b/lua/wikis/freefire/InGameRoles.lua index 85cadb7b283..fbd6a1e77ce 100644 --- a/lua/wikis/freefire/InGameRoles.lua +++ b/lua/wikis/freefire/InGameRoles.lua @@ -12,8 +12,6 @@ local inGameRoles = { ['rifler'] = {category = 'Rifler', display = 'Rifler'}, ['sniper'] = {category = 'Snipers', display = 'Snipers'}, ['bomber'] = {category = 'Bomber', display = 'Bomber'}, - ['igl'] = {category = 'In-game leaders', display = 'In-game leaders'}, - ['captain'] = {category = 'Captain', display = 'Captain'}, } inGameRoles['granader'] = inGameRoles.bomber diff --git a/lua/wikis/osu/InGameRoles.lua b/lua/wikis/osu/InGameRoles.lua index aad1787228f..a202307b8e3 100644 --- a/lua/wikis/osu/InGameRoles.lua +++ b/lua/wikis/osu/InGameRoles.lua @@ -7,7 +7,6 @@ ---@type table local inGameRoles = { - ['igl'] = {category = 'In-game leaders', display = 'In-game leader'}, ['player'] = {category = 'Players', display = 'Player'}, } diff --git a/lua/wikis/pubg/InGameRoles.lua b/lua/wikis/pubg/InGameRoles.lua index d056c1dc59d..fe23d74f5e5 100644 --- a/lua/wikis/pubg/InGameRoles.lua +++ b/lua/wikis/pubg/InGameRoles.lua @@ -9,7 +9,6 @@ local inGameRoles = { ['sniper'] = {category = 'Snipers', display = 'Sniper'}, ['attacker'] = {category = 'Attackers', display = 'ATKs'}, - ['igl'] = {category = 'In-game leaders', display = 'In-game leader'}, ['fragger'] = {category = 'Fraggers', display = 'Fragger'}, ['scout'] = {category = 'Scouts', display = 'Scout'}, ['support'] = {category = 'Supports', display = 'Support'}, diff --git a/lua/wikis/rainbowsix/InGameRoles.lua b/lua/wikis/rainbowsix/InGameRoles.lua index a562d130aec..b8888e5101d 100644 --- a/lua/wikis/rainbowsix/InGameRoles.lua +++ b/lua/wikis/rainbowsix/InGameRoles.lua @@ -10,7 +10,6 @@ local inGameRoles = { ['entry'] = {category = 'Entry fraggers', display = 'Entry fragger'}, ['support'] = {category = 'Support players', display = 'Support'}, ['flex'] = {category = 'Flex players', display = 'Flex'}, - ['igl'] = {category = 'In-game leaders', display = 'In-game leader'}, } inGameRoles['entryfragger'] = inGameRoles['entry'] diff --git a/lua/wikis/splatoon/InGameRoles.lua b/lua/wikis/splatoon/InGameRoles.lua index 820b8779472..044c43530e4 100644 --- a/lua/wikis/splatoon/InGameRoles.lua +++ b/lua/wikis/splatoon/InGameRoles.lua @@ -7,7 +7,6 @@ ---@type table local inGameRoles = { - ['igl'] = {category = 'In-game leaders', display = 'In-game Leader'}, ['frontline'] = {category = 'Frontline', display = 'Frontline'}, ['backline'] = {category = 'Backline', display = 'Backline'}, ['support'] = {category = 'Support', display = 'Support'}, diff --git a/lua/wikis/valorant/InGameRoles.lua b/lua/wikis/valorant/InGameRoles.lua deleted file mode 100644 index 306ecf45d04..00000000000 --- a/lua/wikis/valorant/InGameRoles.lua +++ /dev/null @@ -1,15 +0,0 @@ ---- --- @Liquipedia --- page=Module:InGameRoles --- --- Please see https://github.com/Liquipedia/Lua-Modules to contribute --- - ----@type table -local inGameRoles = { - ['igl'] = {category = 'In-game leaders', display = 'In-game leader'}, -} - -inGameRoles['in-game leader'] = inGameRoles.igl - -return inGameRoles diff --git a/lua/wikis/worldoftanks/InGameRoles.lua b/lua/wikis/worldoftanks/InGameRoles.lua deleted file mode 100644 index 2e386e52bb8..00000000000 --- a/lua/wikis/worldoftanks/InGameRoles.lua +++ /dev/null @@ -1,13 +0,0 @@ ---- --- @Liquipedia --- page=Module:InGameRoles --- --- Please see https://github.com/Liquipedia/Lua-Modules to contribute --- - ----@type table -local inGameRoles = { - ['igl'] = {category = 'In-game leaders', display = 'In-game leader'}, -} - -return inGameRoles diff --git a/lua/wikis/zula/InGameRoles.lua b/lua/wikis/zula/InGameRoles.lua index 1a9f96d8bc6..9b0cf963d3a 100644 --- a/lua/wikis/zula/InGameRoles.lua +++ b/lua/wikis/zula/InGameRoles.lua @@ -7,7 +7,6 @@ ---@type table local inGameRoles = { - ['igl'] = {category = 'In-game leaders', display = 'In-game Leader'}, ['rifler'] = {category = 'Riflers', display = 'Rifler'}, }