Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified lua/spec/snapshots/LeagueIcon.generate_copy_paste_gen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/Slider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/date range display.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/dota2 rankings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_apexlegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_counterstrike.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_dota2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_leagueoflegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_mobilelegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_overwatch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_rainbowsix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_rocketleague.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_starcraft2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_valorant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_apexlegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_counterstrike.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_dota2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_leagueoflegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_mobilelegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_overwatch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_rainbowsix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_rocketleague.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_starcraft2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_valorant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/prize_pool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/squad_row_apexlegends.png
Binary file modified lua/spec/snapshots/squad_row_counterstrike.png
Binary file modified lua/spec/snapshots/squad_row_dota2.png
Binary file modified lua/spec/snapshots/squad_row_leagueoflegends.png
Binary file modified lua/spec/snapshots/squad_row_mobilelegends.png
Binary file modified lua/spec/snapshots/squad_row_overwatch.png
Binary file modified lua/spec/snapshots/squad_row_rocketleague.png
Binary file modified lua/spec/snapshots/squad_row_starcraft2.png
Binary file modified lua/spec/snapshots/squad_row_valorant.png
Binary file modified lua/spec/snapshots/tabs_dynamic_variants.png
Binary file modified lua/spec/snapshots/team_participant.png
Binary file modified lua/spec/snapshots/transfer_row_apexlegends.png
Binary file modified lua/spec/snapshots/transfer_row_counterstrike.png
Binary file modified lua/spec/snapshots/transfer_row_dota2.png
Binary file modified lua/spec/snapshots/transfer_row_leagueoflegends.png
Binary file modified lua/spec/snapshots/transfer_row_mobilelegends.png
Binary file modified lua/spec/snapshots/transfer_row_overwatch.png
Binary file modified lua/spec/snapshots/transfer_row_rainbowsix.png
Binary file modified lua/spec/snapshots/transfer_row_rocketleague.png
Binary file modified lua/spec/snapshots/transfer_row_starcraft2.png
Binary file modified lua/spec/snapshots/transfer_row_valorant.png
15 changes: 11 additions & 4 deletions lua/wikis/commons/Widget/EmptyPagePreview/Team.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local Tournament = Lua.import('Module:Tournament')

local Opponent = Lua.import('Module:Opponent/Custom')

local Infobox = Lua.import('Module:Infobox/Team/Custom')
local Infobox = Lua.requireIfExists('Module:Infobox/Team/Custom')
local MatchTable = Lua.import('Module:MatchTable/Custom')
local ResultsTable = Lua.import('Module:ResultsTable/Custom')
local SquadAuto = Lua.import('Module:SquadAuto') -- to be replaced by #5523
Expand All @@ -50,7 +50,7 @@ local EmptyTeamPagePreview = Class.new(Widget)

---@return Widget?
function EmptyTeamPagePreview:render()
if not Namespace.isMain() then
if not Namespace.isMain() or not Infobox then
return
end

Expand Down Expand Up @@ -123,7 +123,7 @@ function EmptyTeamPagePreview:_infobox()

local args = {
location = location or 'World',
doNotIncludePlayerEarnings = Logic.nilOr(Logic.readBoolOrNil(self.props.doNotIncludePlayerEarnings), true),
doNotIncludePlayerEarnings = Logic.readBool(self.props.doNotIncludePlayerEarnings),
name = TeamTemplate.getRaw(self.team).name,
coaches = coaches,
region = self:_determineRegionFromPlacements() or rosterRegion,
Expand All @@ -133,6 +133,9 @@ function EmptyTeamPagePreview:_infobox()
args[game] = true
end)

--- suppress the ranking display on RL to not error there
args.suppressRanking = true

return Infobox.run(args)
end

Expand Down Expand Up @@ -377,11 +380,15 @@ end
---@private
---@param startDate string?
---@param personData {flag: string?, displayName: string, pageName: string, name: string?}
---@return table
---@return table?
function EmptyTeamPagePreview:_backFillForSquad(startDate, personData)
local teams = self.teams

local pageName = personData.pageName
if not pageName then
return
end

local pageNameWithSpaces = pageName:gsub('_', ' ')
local personCondition = ConditionUtil.anyOf(ColumnName('player'), {pageName, pageNameWithSpaces})

Expand Down
6 changes: 4 additions & 2 deletions lua/wikis/rocketleague/Infobox/Team/Custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ function CustomInjector:parse(id, widgets)
or 'Not enough data'
}
},
Cell{
--- option to suppress this in EmptyPagePreview
--- intentional to only check on true to avoid the option for disabling from wiki code
args.suppressRanking ~= true and Cell{
Comment thread
hjpalpha marked this conversation as resolved.
name = '[[RankingTableRLCS|RLCS Points]]',
children = {TeamRanking.run{
ranking = args.ranking_name,
team = self.caller.pagename
}}
}
} or nil
)
end

Expand Down