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: a23615486fd3cf71

Jump to content

Template talk:Param value

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Param value/styles.css)
Latest comment: 7 months ago by Pigsonthewing in topic 20 Oct 2025

Fix for dark mode

[edit]

Please sync Template:Param value with Template:Param value/sandbox. The addition of the color:inherit directive breaks the template in dark mode. Sohom (talk) 00:41, 3 June 2024 (UTC)Reply

cc @Jonesey95 Sohom (talk) 00:42, 3 June 2024 (UTC)Reply
 Done. Someone else will have to fix the dark mode issue, which is beyond my understanding. Jonesey95 (talk) 03:16, 3 June 2024 (UTC)Reply
@Jonesey95 Do you want to colors flipped during dark mode? If so, I made some changes to Template:Param value/sandbox which appear to have the desired effect in dark mode :) Sohom (talk) 04:46, 3 June 2024 (UTC)Reply
(It turns out color:inherit but with equivalent changes to the background and borders). Sohom (talk) 04:47, 3 June 2024 (UTC)Reply
I think that the goal is to get this link to render all test cases properly, but it is unclear to me how to tell if the test cases are acceptable to the dark mode gurus, since much of the page still looks bad in my browser. – Jonesey95 (talk) 05:38, 3 June 2024 (UTC)Reply
Should be good now :) Sohom (talk) 06:41, 3 June 2024 (UTC)Reply
@Jonesey95 Let me know if the latest version works :) Sohom (talk) 06:42, 3 June 2024 (UTC)Reply
It looks better on the test cases page, so I have updated. Thanks. – Jonesey95 (talk) 13:18, 3 June 2024 (UTC)Reply

20 Oct 2025

[edit]

Merge Template:Param value/sandbox. Added templatestyles and simplified the styles applied to prefer inheriting the <code> defaults.

<code style="border:{{{border|{{{b|thin solid var(--border-color-base, #caa)}}}}}};background-color:{{{bg-color|{{{bg|var(--color-inverted, white)}}}}}};color:{{#if:{{{bg|}}}||inherit|{{Greater color contrast ratio|bg}}}};padding:1px 2px 0 1px;margin:0 2px 0 1px;white-space:nowrap;{{{style|}}}">{{replace|{{replace|{{replace|{{replace|{{replace|<includeonly>⊗ϑ{{{1|}}}⊗ϑ</includeonly><noinclude>value</noinclude>| |{{{space|{{{sp| }}}}}}}}|#|#}}|*|*}}|:|:}}|⊗ϑ|}}</code><noinclude> {{Documentation}} </noinclude>
+
<templatestyles src="Template:Param value/styles.css"/><span class="tpl-pval__wrapper"><code class="tpl-pval__code" style="{{#if:{{{border|{{{b|}}}}}}|border:{{{border|{{{b|}}}}}};}} {{#if:{{{bg-color|}}}|background-color: {{{bg-color}}}; color: {{Greater color contrast ratio|{{{bg-color}}}}};}} {{#if:{{{bg|}}}|color: {{Greater color contrast ratio|{{{bg}}}}};}} {{#ifexpr:{{str len|{{{1|}}}}} > 25|white-space: wrap;|}} {{{style|}}}">{{replace|{{replace|{{replace|{{replace|{{replace|<includeonly>⊗ϑ{{{1|}}}⊗ϑ</includeonly><noinclude>value</noinclude>| |{{{space|{{{sp| }}}}}}}}|#|#}}|*|*}}|:|:}}|⊗ϑ|}}</code></span><noinclude> {{Documentation}} </noinclude>

waddie96 ★ (talk) 09:19, 20 October 2025 (UTC)Reply

 Done—Please check, and report any issues. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:41, 8 December 2025 (UTC)Reply