Template talk:Table cell templates

(Redirected from Template talk:Won)
Latest comment: 2 months ago by Beland in topic Dark mode compatibility

Ice-T discography

edit

There are some issues with the {{Non-album single}} (which transcludes {{N/a}}) on this page, also The Beatnuts discography. I fixed a similar symptom on DJ Muggs production discography but I think this has a different cause. All the best: Rich Farmbrough 19:34, 1 May 2025 (UTC).Reply

Can you be a bit more specific? I don't know what I'm looking for so I can't even begin to suggest a fix. Primefac (talk) 14:27, 17 May 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: Rich Farmbrough 09:42, 19 May 2025 (UTC).Reply
@Rich Farmbrough:  Fixed Template:Non-album single was being used thus:
|align=left| {{Non-album single}}
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
style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}"
So we need to feed the alignment in via a template parameter:
| {{Non-album single |align=left }}
which I did in this edit. A supplementary to that was that I first needed to do this. --Redrose64 🌹 (talk) 18:55, 19 May 2025 (UTC)Reply
Great work! All the best: Rich Farmbrough 18:40, 2 June 2025 (UTC).Reply

Proposed update to Template:n/a

edit

I'd like to update {{n/a}} to use to use ARIA (or some other method) to give information for a screen reader to say aloud. Example in the sandbox: Template:N/a/testcases The current ARIA label value is "Not applicable" but could be any reasonable default. Rjjiii (talk) 19:38, 20 December 2025 (UTC)Reply

@Rjjiii This has caused issues when used with articles such as List of Quantico episodes, see the usages of {{N/a}} inside the {{Series overview}}. The cells no longer display the em-dash, and "appear" as merged cells. This was not an issue before your changes; please fix these accordingly. -- Alex_21 TALK 01:04, 26 December 2025 (UTC)Reply
@Alex 21, thanks for bringing these up. I've tried an update to Module:Series overview that I think should work. The previous bug came from this template now containing the class "sr-only" which that module was applying to the whole cell. If that fix causes a different issue you can let me know and I'll self-revert that change and the change here, or you or another template editor are welcome to revert it. I previewed it on a range of different pages, and it seems to work. *knocks on wood* Rjjiii (talk) 04:04, 26 December 2025 (UTC)Reply
@Rjjiii Much appreciated. -- Alex_21 TALK 21:42, 26 December 2025 (UTC)Reply

Dark mode compatibility

edit

The colors used do not respect dark mode; see mw:Recommendations for night mode compatibility on Wikimedia wikis for advice. -- Beland (talk) 09:02, 4 January 2026 (UTC)Reply

There is some weird CSS interaction that is resulting in unreadable black-on-black link text on the UNCLOS row in List of treaties unsigned or unratified by the United States. This doesn't show up when I make a link in the {{not yet}} row in the table of template examples on Template:Table cell templates/doc. -- Beland (talk) 07:08, 28 March 2026 (UTC)Reply

Template-protected edit request on 9 March 2026

edit

Replace every instance of "E2B740" for the bronze colour code to "C96"

The current colour just doesn't look bronze — IмSтevan talk 19:33, 9 March 2026 (UTC)Reply

There are no contrast issues and it certainly looks more bronze. Due to the high visibility I want to wait a bit for potential objections before implementing the change however. Trialpears (talk) 22:49, 9 March 2026 (UTC)Reply
 Done Trialpears (talk) 12:07, 13 March 2026 (UTC)Reply