Skip to content
Closed
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
12 changes: 8 additions & 4 deletions lua/wikis/commons/Widget/StageWinnings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,20 @@ local WidgetUtil = Lua.import('Module:Widget/Util')
local BASE_CURRENCY = 'USD'

---@class StageWinningProps
---@field tournaments string
---@field ids string?
---@field tournament string?
---@field tournament1 string?
---@field tournament2 string?
---@field tournament3 string?
---@field matchGroupId1 string?
---@field matchGroupId2 string?
---@field matchGroupId3 string?
---@field sdate string|number|osdate|osdateparam?
---@field edate string|number|osdate|osdateparam?
---@field prizeMode 'matchWins'|'gameWins'|'scores'
---@field valueStart number?
---@field valuePerWin number?
---@field n-m number? # n amd m integers
---@field localcurrency string?
---@field width integer?
---@field cutafter integer?
---@field title string?
---@field precision integer?
Expand All @@ -51,7 +55,7 @@ local BASE_CURRENCY = 'USD'
---@field props StageWinningProps
local StageWinnings = Class.new(Widget)
StageWinnings.defaultProps = {
tournaments = mw.title.getCurrentTitle().text,
tournament = mw.title.getCurrentTitle().text,
Comment on lines -54 to +58
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TournamentStructure.readMatchGroupsSpec(props.matchGroupsSpecProps)
or TournamentStructure.currentPageSpec()

could technically be dropped entirely as TournamentStructure.currentPageSpec() handles it already

delimiter = ',',
autoexchange = true,
prizeMode = 'matchWins'
Expand Down
Loading