From 3dfd360dd8f63597be46479b345a224c2616da0e Mon Sep 17 00:00:00 2001 From: hjpalpha <75081997+hjpalpha@users.noreply.github.com> Date: Mon, 9 Oct 2023 09:33:22 +0200 Subject: [PATCH] Add `dq` option to `OpponentDisplay.BlockTeam` (#3361) --- components/opponent/commons/opponent_display.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/opponent/commons/opponent_display.lua b/components/opponent/commons/opponent_display.lua index 2b7bfac3aa0..23012c22712 100644 --- a/components/opponent/commons/opponent_display.lua +++ b/components/opponent/commons/opponent_display.lua @@ -362,6 +362,7 @@ OpponentDisplay.propTypes.BlockTeam = { ---@field showLink boolean? ---@field style teamStyle? ---@field team standardTeamProps +---@field dq boolean? --[[ Displays a team as a block element. The width of the component is determined by @@ -375,7 +376,7 @@ function OpponentDisplay.BlockTeam(props) local style = props.style or 'standard' local function createNameNode(name) - return mw.html.create('span'):addClass('name') + return mw.html.create(props.dq and 's' or 'span'):addClass('name') :wikitext(props.showLink ~= false and props.team.pageName and '[[' .. props.team.pageName .. '|' .. name .. ']]' or name