Template talk:Collapse top
Template:Collapse top is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit protected}} to notify an administrator to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 5 sections are present. |
Where do the "hide" and "show" come from?
edit@Izno: someone who might have a clue. That is to say -- the texts "hide" and "show" in this template, they don't actually show up in the source text -- are they from common.js or something? jp×g🗯️ 00:10, 19 May 2024 (UTC)
- I see that there's a MediaWiki:Collapsible-expand and a MediaWiki:Collapsible-collapse but I don't see how they're actually being invoked in this template. Through the JavaScript or what? jp×g🗯️ 00:12, 19 May 2024 (UTC)
Cot bar skewed when collapsed in mobile
editThe collapsed COT chart is displaying narrower than usual when collapsed, but is expands normally in mobile view. Can this minor issue be fixed? Qwerty284651 (talk) 21:51, 11 August 2024 (UTC)
Protected edit request on 4 September 2024
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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
editThere 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 |}
|
Edit request 6 October 2024
editThis edit request to Template:Collapse top/styles.css has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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; } } |