This template (like all templates) is within the scope of WikiProject Templates, a group dedicated to improving the maintenance of Wikipedia's templates. This particular template is especially important to the project because it is used in the maintenance of other templates. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.TemplatesWikipedia:WikiProject TemplatesTemplate:WikiProject TemplatesTemplates
This page has archives. Sections older than 60 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present.
Has something changed?
Greetings to the experts!
I would like to ask for some information regarding the following. The WinDL template previously displayed a yellow or pink background under the entered result for a draw and loss. Etc.: {{WinDL|res=D|'''1'''–1}}
Something has changed recently, as it no longer displays the result, only the letters D or L. I would like to ask for help to make the result visible again.
Should the background color be removed from Row header
Currently Template:Row header sets a background color (and forces the text color to be black). This template is commonly used with heading cells which already set their own heading color which mostly results in cells using this template having a slightly different color from other heading cells. Should the custom styling for the color be removed here? As a bonus this would fix dark mode usage if the cells can just rely on the default coloring. YannickFran (talk) 19:29, 3 January 2025 (UTC)[reply]
Ice-T discography#As featured artist displays "data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center; " class="table-na" | Non-album single" in the table. All the best: RichFarmbrough09:42, 19 May 2025 (UTC).[reply]
The template doesn't expect to be preceded with table cell attributes, because it sets some itself, and the second pipe turns those attribs into plain text, which is why you're seeing data-sort-value="" etc. in clear. A quick fix would be to remove that second pipe:
|align=left {{Non-album single}}
but the attempt to set the text alignment in that manner gets overridden at a deeper level, specifically inside Template:N/a, which contains the table cell attribute
Is there a reason this template outputs a data-sort-value="" attribute? This seems to be interfering with formatting code that is specified explicitly on the row. If there's no strong reason for this, we should remove it so that consumers of this template can choose how to sort it according to their needs. Getsnoopy (talk) 09:26, 3 May 2025 (UTC)[reply]
@Getsnoopy: The template Template:Table cell templates only emits that attribute if the |sort= parameter is present and not blank. I suspect that you refer to one of more than fifty other templates whose talk pages redirect here. Which specific one did you have in mind? --Redrose64 🌹 (talk) 12:08, 3 May 2025 (UTC)[reply]
Oops; I completely overlooked the fact that this talk page was a catch-all for all the table cell templates. I was referring to the {{BLACK}} template specifically. In it, even without specifying the sort parameter, it outputs data-sort-value="". It seems like this is because the code always outputs the attributes, and merely changes what the value of it is based on the sort value rather than not outputting it at all when the parameter is blank.
More generally, however, I noticed that the sort parameter is not available on all the templates. For example, {{Yes}} does not have it. Getsnoopy (talk) 04:15, 4 May 2025 (UTC)[reply]