This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 5 sections are present. |
Protected edit request on 4 September 2024
Implement this version of the sandbox, to make the template night mode friendly. Andumé (talk) 04:57, 4 September 2024 (UTC)
- Needs to have if subst wrapping the tag. IznoPublic (talk) 00:27, 16 September 2024 (UTC)
- @Izno: Done —Matrix(!) {user - talk? -
uselesscontributions} 19:20, 18 September 2024 (UTC)- The current sandbox does not indicate that what I suggested was done. Izno (talk) 17:24, 19 September 2024 (UTC)
- @Izno: Sorry if I'm being thick but I don't understand what if subst wrapping is? —Matrix(!) {user - talk? -
uselesscontributions} 17:31, 19 September 2024 (UTC)- {{ifsubst}} Izno (talk) 17:38, 19 September 2024 (UTC)
- @Izno: Should be done now. I tested substitution at User:Matrix/sandbox and everything seems fine. —Matrix(!) {user - talk? -
uselesscontributions} 20:29, 20 September 2024 (UTC)- ... no, that was not the point in the slightest.
{{ifsubst||<templatestyles src="Template:Collapse_top/styles.css"/>}}
was the point. Izno (talk) 20:33, 20 September 2024 (UTC)- @Izno: We need the templatestyles statement or else it won't work. See User:Matrix/sandbox, where I tried substing it. I don't see the problem with having templatestyles in substitution anyway. —Matrix(!) {user - talk? -
uselesscontributions} 12:42, 21 September 2024 (UTC)- The point of substing is to erase the fact a template was or is used to produce the wikitext. Leaving TemplateStyles tags is the opposite of that intent. See also WP:TemplateStyles which says "don't subst these tags". Izno (talk) 15:34, 21 September 2024 (UTC)
- @Izno: Done, see results at User:Matrix/sandbox. I used the light-dark css function for the inline css. —Matrix(!) {user - talk? -
uselesscontributions} 11:42, 22 September 2024 (UTC)- light-dark is too new to be used in a template used this widely. Izno (talk) 16:22, 22 September 2024 (UTC)
- @Izno: There aren't any other options other than defining global rules (or a custom css token) at MediaWiki:Common.css if we still want dark mode to work during substitution IMO. Or we could persuade WMF to make a new design token. Thoughts? —Matrix(!) {user - talk? -
uselesscontributions} 17:23, 22 September 2024 (UTC)- The solution is to make dark mode not work with substitution. Hence why I said we should ifsubst it. There's only so much that can be done to support dark mode for the time being. Izno (talk) 17:27, 22 September 2024 (UTC)
- @Izno: Done. The top bar won't work with substitution but the inside will since that is controlled with design token. —Matrix(!) {user - talk? -
uselesscontributions} 15:57, 23 September 2024 (UTC)
- @Izno: Done. The top bar won't work with substitution but the inside will since that is controlled with design token. —Matrix(!) {user - talk? -
- The solution is to make dark mode not work with substitution. Hence why I said we should ifsubst it. There's only so much that can be done to support dark mode for the time being. Izno (talk) 17:27, 22 September 2024 (UTC)
- @Izno: There aren't any other options other than defining global rules (or a custom css token) at MediaWiki:Common.css if we still want dark mode to work during substitution IMO. Or we could persuade WMF to make a new design token. Thoughts? —Matrix(!) {user - talk? -
- light-dark is too new to be used in a template used this widely. Izno (talk) 16:22, 22 September 2024 (UTC)
- @Izno: Done, see results at User:Matrix/sandbox. I used the light-dark css function for the inline css. —Matrix(!) {user - talk? -
- The point of substing is to erase the fact a template was or is used to produce the wikitext. Leaving TemplateStyles tags is the opposite of that intent. See also WP:TemplateStyles which says "don't subst these tags". Izno (talk) 15:34, 21 September 2024 (UTC)
- @Izno: We need the templatestyles statement or else it won't work. See User:Matrix/sandbox, where I tried substing it. I don't see the problem with having templatestyles in substitution anyway. —Matrix(!) {user - talk? -
- ... no, that was not the point in the slightest.
- @Izno: Should be done now. I tested substitution at User:Matrix/sandbox and everything seems fine. —Matrix(!) {user - talk? -
- {{ifsubst}} Izno (talk) 17:38, 19 September 2024 (UTC)
- @Izno: Sorry if I'm being thick but I don't understand what if subst wrapping is? —Matrix(!) {user - talk? -
- The current sandbox does not indicate that what I suggested was done. Izno (talk) 17:24, 19 September 2024 (UTC)
- @Izno: Done —Matrix(!) {user - talk? -
This still isn't formatting correctly when MathJax is inside the collapsible section. See for example Multivariable calculus, where all of the math renders in white-on-white in dark mode. FeRDNYC (talk) 17:35, 25 September 2024 (UTC)
- @FeRDNYC: That's because the proposed edit has not been implemented yet in the live template. It seems to render fine when using the sandbox. Andumé (talk) 18:40, 25 September 2024 (UTC)
- Whoops! Thanks, I somehow missed that. FeRDNYC (talk) 17:31, 26 September 2024 (UTC)
Done Izno (talk) 18:07, 29 September 2024 (UTC)
Incomplete background color in the title bar
There is incomplete background color in a collapsed title bar at narrow window widths when the title string is short. See this VPT discussion for details. Excerpt:
{{cot}} is cutting off bg color in collapsed state on mobile. When expanded displays properly in Talk:List of Grand Slam and related tennis records#New versions. Is this a bug or a skin issue? Qwerty284651 (talk) 10:32, 20 September 2024 (UTC)
{{Cot|Version 1}} |- | {{lipspan|1}} |} {{Cot|Version 1 - same, but with a longer title field; there must be a clue here somewhere}} |- | {{lipspan|1}} |}
{| style="border: 1px solid" |- style="background-color: cyan;" | Test |}
{| style="border: 1px solid" |- style="background-color: azure;" | testing whether that nation, or any nation so conceived and so dedicated, can long endure |}
|
Mathglot (talk) 22:25, 22 September 2024 (UTC)
Edit request 6 October 2024
Description of suggested change:
Please correct a typo on line 31 of the TemplateStyles at Template:Collapse top/styles.css.
Diff:
− | @media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .cot-header-mainspace {
background:#14181F;
color:inherit;
}
html.skin-theme-clientpref-os .cot-header- | + | @media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .cot-header-mainspace {
background:#14181F;
color:inherit;
}
html.skin-theme-clientpref-os .cot-header-other {
background:#003500;
color:inherit;
}
} |
FeRDNYC (talk) 22:59, 6 October 2024 (UTC)
headerstyle parameter for arbitrary CSS
Could/should we add a |headerstyle=
parameter for arbitrary CSS to be applied to the heading analogous to the same parameter on {{hidden}}? My specific use case was to add a font-weight: normal
. I'm not sure if it should be an attribute of the <tr>
, <th>
, or <div>
. I would assume the <div>
, but we should probably consider other potential use cases. Daask (talk) 16:39, 3 February 2025 (UTC)
Problems in mobile-view
This template has had problems in mobile-view for a long time now. Can such problems be addressed or at least referenced in its documentation for transparency reasons? - Klein Muçi (talk) 12:07, 27 February 2025 (UTC)