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. |
Want parameter to make the box as wide as the title, and left aligned
[edit]Please see: Wikipedia talk:Manual of Style/Accessibility#Template:Collapse top, and Template:Collapse bottom.
I would like a parameter that makes the collapsed box as wide as the title and left aligned.
There is already a parameter to left align the title text. I am not talking about that. I want the box itself aligned to the left side of the page.
And I want the title text to wrap in narrower screens. --Timeshifter (talk) 16:54, 10 February 2024 (UTC)
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
[edit]The 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
[edit]It is requested that an edit be made to the fully protected template at Template:Collapse top. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to fully protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the template's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
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)
Incomplete background color in the title bar
[edit]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 |}
|