diff --git a/lua/spec/snapshots/teamcard_legacy.png b/lua/spec/snapshots/teamcard_legacy.png index 485d64f68cc..fec529b3397 100644 Binary files a/lua/spec/snapshots/teamcard_legacy.png and b/lua/spec/snapshots/teamcard_legacy.png differ diff --git a/lua/wikis/commons/TeamCard/Legacy.lua b/lua/wikis/commons/TeamCard/Legacy.lua index 7242236a5b6..0cc02e2f36d 100644 --- a/lua/wikis/commons/TeamCard/Legacy.lua +++ b/lua/wikis/commons/TeamCard/Legacy.lua @@ -28,8 +28,6 @@ local Comparator = Condition.Comparator local ColumnName = Condition.ColumnName local Html = Lua.import('Module:Widget/Html') -local Link = Lua.import('Module:Widget/Basic/Link') -local WarningBox = Lua.import('Module:Widget/WarningBox') local WidgetUtil = Lua.import('Module:Widget/Util') local teamParticipantsVars = PageVariableNamespace('TeamParticipants') @@ -147,15 +145,7 @@ function LegacyTeamCard.run(dependency) end legacyVars:delete('wrapperOpen') - return Html.Fragment{children = WidgetUtil.collect( - notesWidget, - display, - WarningBox{text = { - 'Template:TeamCard is deprecated. Use ', - Link{link = 'Template:TeamParticipants'}, - ' instead!', - }} - )} + return Html.Fragment{children = WidgetUtil.collect(notesWidget, display)} end ---@param rawQualifier string|table|nil diff --git a/lua/wikis/commons/Widget/WarningBox.lua b/lua/wikis/commons/Widget/WarningBox.lua index 210b24e65df..755d25607f6 100644 --- a/lua/wikis/commons/Widget/WarningBox.lua +++ b/lua/wikis/commons/Widget/WarningBox.lua @@ -13,7 +13,7 @@ local Component = Lua.import('Module:Widget/Component') local IconImage = Lua.import('Module:Widget/Image/Icon/Image') local Html = Lua.import('Module:Widget/Html') ----@param props {text: Renderable|Renderable[]?} +---@param props {text: string|number?} ---@return VNode? local function WarningBox(props) local text = props.text