From a3a1146048b55c4ccfa782049e12137f2ba9d4ec Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Fri, 20 Oct 2023 21:20:10 +0700 Subject: [PATCH] Add MatchTicker to FIFA Team Infobox (#3416) --- components/infobox/wikis/fifa/infobox_team_custom.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/components/infobox/wikis/fifa/infobox_team_custom.lua b/components/infobox/wikis/fifa/infobox_team_custom.lua index 3731e3f8187..d081cd05748 100644 --- a/components/infobox/wikis/fifa/infobox_team_custom.lua +++ b/components/infobox/wikis/fifa/infobox_team_custom.lua @@ -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