Skip to content
Closed
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
5 changes: 5 additions & 0 deletions lua/wikis/lab/MatchGroup/Input/Custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ local FfaMapFunctions = {}
---@param options table?
---@return table
function CustomMatchGroupInput.processMatch(match, options)
local projectName = mw.title.getCurrentTitle().rootText
local ProjectCustomMatchGroupInput = Lua.requireIfExists('Module:MatchGroup/Input/Custom/' .. projectName)
if ProjectCustomMatchGroupInput then
return ProjectCustomMatchGroupInput.processMatch(match, options)
end
return MatchGroupInputUtil.standardProcessMatch(match, MatchFunctions, FfaMatchFunctions)
end

Expand Down
5 changes: 5 additions & 0 deletions lua/wikis/lab/MatchSummary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ local CustomMatchSummary = {}
---@param args table
---@return Html
function CustomMatchSummary.getByMatchId(args)
local projectName = mw.title.getCurrentTitle().rootText
local ProjectCustomMatchSummary = Lua.requireIfExists('Module:MatchSummary/' .. projectName)
if ProjectCustomMatchSummary then
return ProjectCustomMatchSummary.getByMatchId(args)
end
return MatchSummary.defaultGetByMatchId(CustomMatchSummary, args)
end

Expand Down
5 changes: 5 additions & 0 deletions lua/wikis/lab/MatchSummary/Ffa.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ local WidgetUtil = Lua.import('Module:Widget/Util')
---@param props {bracketId: string, matchId: string}
---@return Widget
function CustomMatchSummary.getByMatchId(props)
local projectName = mw.title.getCurrentTitle().rootText
local ProjectCustomMatchSummary = Lua.requireIfExists('Module:MatchSummary/Ffa/' .. projectName)
if ProjectCustomMatchSummary then
return ProjectCustomMatchSummary.getByMatchId(props)
end
---@class FFAMatchGroupUtilMatch
local match = MatchGroupUtil.fetchMatchForBracketDisplay(props.bracketId, props.matchId)
SummaryHelper.updateMatchOpponents(match)
Expand Down
Loading