Skip to content

Commit

Permalink
Add MatchTicker to FIFA Team Infobox (#3416)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hesketh2 authored Oct 20, 2023
1 parent 9c5b096 commit a3a1146
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions components/infobox/wikis/fifa/infobox_team_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,20 @@

local Class = require('Module:Class')
local Lua = require('Module:Lua')
local MatchTicker = require('Module:MatchTicker/Participant')
local MatchTicker = require('Module:MatchTicker/Custom')

local Team = Lua.import('Module:Infobox/Team', {requireDevIfEnabled = true})

local CustomTeam = Class.new()

local _team

function CustomTeam.run(frame)
local team = Team(frame)
_team = team
team.createBottomContent = CustomTeam.createBottomContent
return team:createInfobox()
end

function CustomTeam:createBottomContent()
return MatchTicker.run{team = _team.pagename}
return MatchTicker.participant{team = self.pagename}
end

return CustomTeam

0 comments on commit a3a1146

Please sign in to comment.