Skip to content
Merged
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/team_participant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions lua/wikis/commons/TeamParticipants/Parse/Wiki.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ local TeamParticipantsWikiParser = {}
---potentialQualifiers: standardOpponent[]?, warnings: string[]?}

---@alias QualificationMethod 'invite'|'qual'
---@alias QualificationType 'tournament'|'external'|'other'
---@alias QualificationType 'tournament'|'internal'|'external'|'other'

---@alias QualificationStructure {method: QualificationMethod, type: QualificationType,
---tournament?: StandardTournament, url?: string, text?: string, placement?: string}
---page?: string, tournament?: StandardTournament, url?: string, text?: string, placement?: string}

---@param args table
---@return {participants: TeamParticipant[], expectedPlayerCount: integer?}
Expand Down Expand Up @@ -94,7 +94,7 @@ local function parseQualifier(input)
end
local tournament = Tournament.getTournament(tournamentPage)
if not tournament then
qualificationStructure.type = 'other'
qualificationStructure.type = 'internal'
qualificationStructure.page = input.page
else
qualificationStructure.tournament = tournament
Expand All @@ -103,7 +103,7 @@ local function parseQualifier(input)
qualificationStructure.url = input.url
end

if qualificationType == 'external' or (qualificationType == 'other' and qualificationStructure.page) then
if qualificationType == 'external' or qualificationType == 'internal' then
assert(qualificationStructure.text, 'External or non-tournament qualifier must have text')
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function ParticipantsTeamQualifierInfo:render()
additionalClasses = { 'team-participant-card__qualifier-icon' }
}
linktype = 'external'
elseif qualification.type == 'other' then
elseif qualification.type == 'internal' then
link = qualification.page
icon = Icon{
iconName = 'internal_link',
Expand Down
Loading