Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a2271b65bbab1210

Jump to content

Template talk:Table cell templates

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Exempt)
Latest comment: 6 days ago by IamNikita 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
Tables in Base64#Variants also have invisible links in dark mode. Indefatigable (talk) 15:18, 16 July 2026 (UTC)Reply
This piece of css is responsible for it:
html.skin-theme-clientpref-night body.ns-0:not(.page-Main_Page) .mw-parser-output table:not(.infobox):not(.navbox-inner):not(.navbox) [bgcolor] a:not(.mw-selflink),
html.skin-theme-clientpref-night body.ns-0:not(.page-Main_Page) .mw-parser-output table:not(.infobox):not(.navbox-inner):not(.navbox)[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a:not(.mw-selflink),
html.skin-theme-clientpref-night body.ns-0:not(.page-Main_Page) .mw-parser-output table:not(.infobox):not(.navbox-inner):not(.navbox) th[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a:not(.mw-selflink),
html.skin-theme-clientpref-night body.ns-0:not(.page-Main_Page) .mw-parser-output table:not(.infobox):not(.navbox-inner):not(.navbox) td[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a:not(.mw-selflink),
html.skin-theme-clientpref-night body.ns-0:not(.page-Main_Page) .mw-parser-output table:not(.infobox):not(.navbox-inner):not(.navbox) tr[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) td a:not(.mw-selflink) {
  color:var(--color-base-fixed,#202122);
  text-decoration:underline
}
I don't understand where it lives, and according to @TheDJ's comment in https://phabricator.wikimedia.org/T360844#9957612 it seems to be a known issue for a while?
To fix the issue the hack probably could be tighten with
:not([style*="background-color: var"])
IamNikita (talk) 23:27, 17 July 2026 (UTC)Reply
Since the css already has this:
  .wikitable > tr > th,
  .wikitable > * > tr > th {
    background-color:var(--background-color-neutral,#eaecf0);
    color:var(--color-base,#202122);
    text-align:center
  }
I think simply removing background-color: var(--background-color-neutral,#eaecf0);color: var(--color-base,#202122) from the template code will fix everything in a preferred way. IamNikita (talk) 05:51, 18 July 2026 (UTC)Reply
Ah, no, the template doesn't convert td into th. But why? IamNikita (talk) 05:55, 18 July 2026 (UTC)Reply
Ok, I see, exclamation point ! instead of vertical bar | should be used to make cell table header. I'm not sure what is the purpose of Template:Rh then besides left-aligning the text, but then it feels like the default value for th in css is just wrong. IamNikita (talk) 06:11, 18 July 2026 (UTC)Reply
To leave thead th elements center-aligned and tbody th elements left-aligned the css can be changed like this:
  .wikitable > tr > th,
  .wikitable > * > tr > th {
    background-color:var(--background-color-neutral,#eaecf0);
    color:var(--color-base,#202122);
    text-align:left
  }
  .wikitable > thead > tr > th {
    text-align:center
  }
after which uses of |{{rh}} could be replaced with ! and there would be no need in Template:Rh anymore. IamNikita (talk) 22:53, 21 July 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
…Ah, so that is probably why third place [now] looks dark/muddy; compared to black-text-on-gold/black-text-on-silver, there is [now] less contrast.
Gold Silver Bronze "Bronze" Fourth
Sladen (talk) 16:35, 12 July 2026 (UTC)Reply