Skip to content
Draft
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
2 changes: 1 addition & 1 deletion lua/wikis/commons/Infobox/Basic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local Table = Lua.import('Module:Table')
local Info = Lua.import('Module:Info')
local Infobox = Lua.import('Module:Widget/Infobox/Core')

---@class BasicInfobox
---@class BasicInfobox: BaseClass
---@operator call(Frame): BasicInfobox
---@field args table
---@field pagename string
Expand Down
13 changes: 9 additions & 4 deletions lua/wikis/smash/Infobox/League/Custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,18 @@ local DEFAULT_TYPE = 'offline'
local MANUAL_SERIES_ICON = 1
local UNKNOWN_DATE_PART = '??'

--- @class SmashLeagueInfobox: InfoboxLeague
--- @field _base InfoboxLeague
---@class SmashLeagueInfobox: InfoboxLeague
---@operator call(Frame): SmashLeagueInfobox
---@field super fun(self: SmashLeagueInfobox): InfoboxLeague
local CustomLeague = Class.new(League)

---@class SmashLeagueInfoboxWidgetInjector: WidgetInjector
---@operator call(SmashLeagueInfobox): SmashLeagueInfoboxWidgetInjector
---@field caller SmashLeagueInfobox
local CustomInjector = Class.new(Injector)

--- @param frame Frame
--- @return Html
--- @return Widget
function CustomLeague.run(frame)
local league = CustomLeague(frame)
league:setWidgetInjector(CustomInjector(league))
Expand Down Expand Up @@ -125,7 +130,7 @@ function CustomLeague:createLiquipediaTierDisplay(args)
return nil
end

return self._base.createLiquipediaTierDisplay(self, args)
return self:super():createLiquipediaTierDisplay(args)
end

--- @param args table
Expand Down
Loading