![]() | Template:Stack 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 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. |
|
Archives: 1 |
I'm not 100% sure of the purpose of this template but the floating that it applies breaks display of the infobox in the mobile site. See phabricator ticket. Would appreciate some help fixing this! Jdlrobson (talk) 18:44, 6 February 2017 (UTC) Jdlrobson (talk) 18:44, 6 February 2017 (UTC)
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)
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=y
or |margin=1
or |margin=true
. please let me know if this broke something. Frietjes (talk) 17:15, 14 July 2020 (UTC)
![]() | This edit request to Template:Stack, Template:Stack/styles.css and Template:Stack begin has been answered. Set the |answered= parameter to no to reactivate your request. |
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)
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)
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Hey, there. A small grammatical change request. I noticed, that in the Floating portal boxes subsection in the penultimate paragraph, 3rd line, it says: "their" instead of "they are". Could you, please, make the suggested change? Thanks. Qwerty284651 (talk) 18:04, 10 October 2021 (UTC)
![]() | This edit request to Template:Stack begin has been answered. Set the |answered= parameter to no to reactivate your request. |
This template should be update to adapt recent changes on Template:Stack/styles.css, also follow Template:Stack, the source code can be copied from here:
<templatestyles src="Stack/styles.css"/><div class="stack {{#switch:{{{float|right}}}|left=stack-{{#switch:{{{margin|}}}|1|true|y|yes=margin-}}{{#switch:{{{clear|}}}|left|true=clear-}}left|right=stack-{{#switch:{{{margin|}}}|1|true|y|yes=margin-}}{{#switch:{{{clear|}}}|right|true=clear-}}right}}"><!--
--><div {{#if:{{{cellspacing|}}}|style="margin: {{{cellspacing}}}px"}}><!--
-->{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using stack with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Stack begin]] with unknown parameter "_VALUE_"|ignoreblank=y| cellspacing | clear | float | margin }}<noinclude>
{{stack end}}
{{documentation}}
</noinclude>
-- Great Brightstar (talk) 19:58, 19 February 2023 (UTC)
mw-stack stack-container
replaced with stack
. Is that correct? — Martin (MSGJ · talk) 14:41, 22 February 2023 (UTC)![]() | This edit request to Template:Stack begin has been answered. Set the |answered= parameter to no to reactivate your request. |
I found {{stack}} has two classes stack
and mw-stack
, the latter is missing in {{stack begin}}. I hope the missing class would be added soon. -- Great Brightstar (talk) 14:49, 6 June 2024 (UTC)