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. |
Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below. |
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 5 sections are present. |
I browsed to a page using this template on my phone and the content which was intended by page authors to be collapsed by default was instead showing and not collapsible. Can this be fixed? IMO mobile readers should be given as close to the same reading experience as practical.
Also, if this is going to remain broken for mobile views, the template documentation should describe what happens there and why. Otherwise desktop authors who don't themselves use mobile devices are given no hint that use of this template is buggy/broken for mobile readers. – jacobolus (t) 19:04, 10 February 2023 (UTC)
{{
Collapse}}
) with a "Limitations" section, transcluding the relevant material from
Help:Collapsing#Limitations, so if that gets updated with new information like an MW upgrade resolving the issue, then the templates' /doc pages will automatically inherit the update. —
SMcCandlish
☏
¢ 😼 20:38, 14 December 2023 (UTC)This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
It would be useful if it were possible to left align the textbox by introducing a |margin=
parameter, i.e.:
margin: 0.2em auto auto;
margin: {{{margin|0.2em auto auto}}};
T.Shafee(Evo&Evo) talk 05:43, 26 May 2023 (UTC)
|indent=
which has simple syntax for left alignment control, which was the stated use case. A |margin=
could do more than that, but there's not any demonstrated need for it, and people would probably be apt to do silly things with it. —
SMcCandlish
☏
¢ 😼 20:34, 14 December 2023 (UTC)Is there a way to have the line of text that is visible when the box is collapsed disappear when the box is uncollapsed. Clearly "something sort-of like this" can be done, given the [show] link disappears (replaced by [hide]). Two ideas that have been mentioned in the banner-shell redesign RFC suggest this would be a useful feature. DMacks ( talk) 20:53, 18 July 2023 (UTC)
mw-collapsible
, mw-collapsed
, etc.; I think it may be built into MediaWiki. It's not "magic" done within the template code. There's not a facility I can think of in the basic MW templating language that would make what you want feasible, though I would think it could be done in Lua code by converting from a template to a module and then working something up in the module. —
SMcCandlish
☏
¢ 😼 20:13, 14 December 2023 (UTC)This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please sync with
the sandbox so that constructions like |left=no
work as intended (the sandbox wraps {{{left}}}
and {{{warning}}}
with {{
yesno}}).
House
Blaster
talk 17:31, 8 December 2023 (UTC)
|foo=yes
parameter in them that does not also parse a no value; it's understood that you just omit or blank the parameter if you don't want the feature in question to trigger. (Or in a few cases we have |bar=no
syntax, to turn off a feature that's on by default, but again without an explicit yes being parsed). Handling both seems uncommonly done, and mostly for complex templates that both have wider usage and a larger number of parameters that people can't be expected to just quickly get what the default results of which are by a quick skim of the /doc page. Anyway, I don't object to adding this feature, but it seems rather unnecessary, and if you plan to go template-by-template doing this, you may meet resistance to the code bloat and "Template talk:" churn it involves. —
SMcCandlish
☏
¢ 😼 20:08, 14 December 2023 (UTC)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)
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. |
Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below. |
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 5 sections are present. |
I browsed to a page using this template on my phone and the content which was intended by page authors to be collapsed by default was instead showing and not collapsible. Can this be fixed? IMO mobile readers should be given as close to the same reading experience as practical.
Also, if this is going to remain broken for mobile views, the template documentation should describe what happens there and why. Otherwise desktop authors who don't themselves use mobile devices are given no hint that use of this template is buggy/broken for mobile readers. – jacobolus (t) 19:04, 10 February 2023 (UTC)
{{
Collapse}}
) with a "Limitations" section, transcluding the relevant material from
Help:Collapsing#Limitations, so if that gets updated with new information like an MW upgrade resolving the issue, then the templates' /doc pages will automatically inherit the update. —
SMcCandlish
☏
¢ 😼 20:38, 14 December 2023 (UTC)This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
It would be useful if it were possible to left align the textbox by introducing a |margin=
parameter, i.e.:
margin: 0.2em auto auto;
margin: {{{margin|0.2em auto auto}}};
T.Shafee(Evo&Evo) talk 05:43, 26 May 2023 (UTC)
|indent=
which has simple syntax for left alignment control, which was the stated use case. A |margin=
could do more than that, but there's not any demonstrated need for it, and people would probably be apt to do silly things with it. —
SMcCandlish
☏
¢ 😼 20:34, 14 December 2023 (UTC)Is there a way to have the line of text that is visible when the box is collapsed disappear when the box is uncollapsed. Clearly "something sort-of like this" can be done, given the [show] link disappears (replaced by [hide]). Two ideas that have been mentioned in the banner-shell redesign RFC suggest this would be a useful feature. DMacks ( talk) 20:53, 18 July 2023 (UTC)
mw-collapsible
, mw-collapsed
, etc.; I think it may be built into MediaWiki. It's not "magic" done within the template code. There's not a facility I can think of in the basic MW templating language that would make what you want feasible, though I would think it could be done in Lua code by converting from a template to a module and then working something up in the module. —
SMcCandlish
☏
¢ 😼 20:13, 14 December 2023 (UTC)This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please sync with
the sandbox so that constructions like |left=no
work as intended (the sandbox wraps {{{left}}}
and {{{warning}}}
with {{
yesno}}).
House
Blaster
talk 17:31, 8 December 2023 (UTC)
|foo=yes
parameter in them that does not also parse a no value; it's understood that you just omit or blank the parameter if you don't want the feature in question to trigger. (Or in a few cases we have |bar=no
syntax, to turn off a feature that's on by default, but again without an explicit yes being parsed). Handling both seems uncommonly done, and mostly for complex templates that both have wider usage and a larger number of parameters that people can't be expected to just quickly get what the default results of which are by a quick skim of the /doc page. Anyway, I don't object to adding this feature, but it seems rather unnecessary, and if you plan to go template-by-template doing this, you may meet resistance to the code bloat and "Template talk:" churn it involves. —
SMcCandlish
☏
¢ 😼 20:08, 14 December 2023 (UTC)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)