Template:Stackispermanently 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 template-protected}} to notify an administrator or template editor 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 is the talk page for discussing improvements to the Stack template.
TemplateStyles will make this an easy fix. In the meantime, I added .mobile-float-reset to the sandbox version as a stopgap measure, will that be a little less broken? Matt Fitzpatrick (talk) 05:20, 6 March 2017 (UTC)[reply]
I'm seeing lots of articles e.g. Jörg Müller which use the syntax
{| style="float:right; background:transparent;"
or similar. Other examples are Violet_(color), Addiction and Princess Ayako of Takamado.
It seems these can all be switched to use the stack template. Doing that would make all our infoboxes render consistently - either as a top level element or an element wrapped inside a mw-stack element. This is important as it allows mobile sites to identify the infobox correctly and either collapse them (as they do on apps) or reposition them to improve the time a reader can read our content (As we do on mobile web). Is there a bot we can use or any reasons we would not do this?
Jdlrobson (talk)
Jdlrobson, I fixed some of them, and I will watch the page. some of them seem to be false positives, or there is a deeper issue (e.g., Diakofto–Kalavryta Railway, where we really need to split the infobox from the route diagram). there are also repeated entries in the list. Frietjes (talk) 23:30, 18 January 2018 (UTC)[reply]
interesting... Is that a navbox or an infobox? (It looks like a navbox but is not tagged as such but equally could be an infobox:))) wouldn't a stack template have the same effect of keeping them separate but stacked? I'll keep out repeated versions in follow up edits. Sorry about that!! Jdlrobson (talk) 06:37, 19 January 2018 (UTC)[reply]
I'm seeing lots of improvement here! Thank you so much! My logs show 10 complaints per hour. Considering those complaints were almost 1000 only a week ago this seems like a huge win. :) On a more general note, it seems like a tool for identifying inconsistencies and known problems in templates and page layout would be very helpful for making our content more mobile friendly and parse-able. Jdlrobson (talk) 16:45, 22 January 2018 (UTC)[reply]
When left/right stacking elements that don't have a margin, it may be advantageous to add a right/left margin of the same size used by other floating objects (typically 1em). I have implemented this feature with |margin=yor|margin=1or|margin=true. please let me know if this broke something. Frietjes (talk) 17:15, 14 July 2020 (UTC)[reply]
The template currently used mobile-float-reset class for mobile view, however I think apply the similar style for stack-container is enough, so I removed the mobile-float-reset class and made new implementation in the template sandbox. -- Great Brightstar (talk) 18:03, 8 September 2020 (UTC)[reply]
Yes, I confirmed, this change removed the mobile-float-reset class, and the relevant CSS properties were transferred to stack-container class, but doesn't change the visual appearance on mobile view, i.e. no regression will happen. -- Great Brightstar (talk) 12:35, 11 September 2020 (UTC)[reply]
Done please confirm I have done this correctly. It wasn't a simple of case of copying from the sandboxes because you had left various sandbox links in. — Martin (MSGJ · talk) 13:14, 11 September 2020 (UTC) — Martin (MSGJ · talk) 13:14, 11 September 2020 (UTC)[reply]
Hi - can someone respond as to why this template isn't working on mobile versions of Wikipedia? See the maps at Chicago and Columbus, Ohio, for instance. This display issue is a major barrier to mapframe implementation on city articles. ɱ(talk)17:13, 14 July 2021 (UTC)[reply]
Template-protected edit request on 10 October 2021