Template talk:Hidden archive top

(Redirected from Template talk:Hidden archive top/sandbox)
Latest comment: 3 hours ago by Sohom Datta in topic Add role="presentation" on layout table

Nomination for merging of Template:Collapse bottom and Template:Hidden archive bottom

edit

 Template:Collapse bottom has been nominated for merging with Template:Hidden archive bottom. You are invited to comment on the discussion at the template's entry on the Templates for discussion page. Thank you. –MJLTalk 03:15, 28 February 2021 (UTC)Reply

Why?

edit

Why is basically the same line used twice? --91.5.101.3 (talk) 01:33, 17 June 2022 (UTC)Reply

[show] button not working

edit

I'm not familiar with this template, so I'm not sure where the issue is and whether there's an issue in the first place, but I've encountered it on Talk:Viktor Shokin where it's in the top section of the talk page. The template displays the text [show] and I would expect that this is a button/hyperlink to see said archived discussion. The problem is that this show-button/hyperlink is not clickable. To see the discussion I need to go into the Editor (~edit section). There, I can see the discussion in raw wiki syntax. But that's probably not how this template is supposed to work...? Nakonana (talk) 11:37, 22 October 2023 (UTC)Reply

Heading text colour unreadable in dark mode

edit

In Vector 2022 dark mode, as can (not) be seen at Special:Permalink/1237147973, all headings inside the hatted section are shown with white text, making them unreadable on the light orange background. This is because of two style rules: .mw-heading, h1, h2, h3, h4, h5, h6 { color: var(--color-emphasized, #000) } and html.skin-theme-clientpref-night { --color-emphasized: #f8f9fa }.

I think this could be fixed using TemplateStyles with either something like .hidden-archive { --color-emphasized: black } or .hidden-archive .mw-heading { color: black }, but maybe someone else has a better idea. Thoughts? Rummskartoffel 10:49, 28 July 2024 (UTC) Turns out TemplateStyles doesn't allow setting variables, so that fix wouldn't work. Rummskartoffel 11:31, 28 July 2024 (UTC)Reply

Please copy Special:Permalink/1237150758 to Template:Hidden archive top/styles.css, then insert <templatestyles src="Template:Hidden archive top/styles.css" /> before the current first line of Template:Hidden archive top. Rummskartoffel 20:26, 31 July 2024 (UTC)Reply
  Not done for now: please establish a consensus for this alteration before using the {{Edit template-protected}} template.
Headings won't be the only thing that can be broken inside a {{hat}}/{{hab}} pair in dark mode. A more general approach, perhaps using mw:Codex colors (with color: var(--color-base, #202122); to deal dark mode styling), should be used. I tried some colors: Special:Diff/1148582313/1238559239, but it is too far from the current  #fcf4ef .
The top row of {{hat}} has color  #f2dfce . Perhaps, we should completely revamp the coloring and only use Codex colors? —⁠andrybak (talk) 14:44, 4 August 2024 (UTC)Reply

Template-protected edit request on 3 August 2025 support indentation

edit

The reply tool was inserting comments ahead of the section I {{hat}}ed at Talk:2025_Kamchatka_Peninsula_earthquake#Requested_move_31_July_2025. Other people kept needing to move comments into chronological order.

Please sync from Special:Permalink/1304091969. At the same time, change {{hab}} to </td></tr></table>. This solution of expanding the HTML tables was taken from https://stackoverflow.com/a/42906173 . 174.138.212.166 (talk) 09:01, 3 August 2025 (UTC)Reply

Indentation demo

edit

The : and * need to be replaced with HTML to properly use this new feature of having {{hat}} itself indented.

Demo [[Special:Contributions/174.138.212.166|174.138.212.166]] ([[User talk:174.138.212.166|talk]]) 23:12, 1 August 2025 (UTC)
* test [[Special:Contributions/174.138.212.166|174.138.212.166]] ([[User talk:174.138.212.166|talk]]) 08:50, 3 August 2025 (UTC)
*{{Template:Hidden_archive_top/sandbox}}<dl><!--
--><dd>test</dd><!--
--><dd>test2 [[Special:Contributions/174.138.212.166|174.138.212.166]] ([[User talk:174.138.212.166|talk]]) 08:39, 3 August 2025 (UTC)</dd><!--
--></dl></td></tr></table>
* test [[Special:Contributions/174.138.212.166|174.138.212.166]] ([[User talk:174.138.212.166|talk]]) 08:49, 3 August 2025 (UTC)

I substed {{Hidden_archive_top/sandbox}} below using ExpandTemplates in case someone modifies the sandbox. Notice that the "Reply" button to the right of "Demo" works properly now.

Demo 174.138.212.166 (talk) 23:12, 1 August 2025 (UTC)Reply

  • test 174.138.212.166 (talk) 08:50, 3 August 2025 (UTC)Reply
  • This discussion has been closed. Please do not modify it.
    The following discussion has been closed. Please do not modify it.
    test
    test2 174.138.212.166 (talk) 08:39, 3 August 2025 (UTC)Reply
  • test 174.138.212.166 (talk) 08:49, 3 August 2025 (UTC)Reply

The show button being on the left is apparently indended on line 355. 174.138.212.166 (talk) 09:11, 3 August 2025 (UTC)Reply

Yes, because the safesubst:ifsubst template wasn't closed within the table's opening parameters. Additionally, tables may not be placed on bulleted lines (see MW:Help:Lint errors/multiline-html-table-in-list). Zinnober9 (talk) 11:57, 3 August 2025 (UTC)Reply
In your link, it said An alternative fix would be to make the HTML table be on the same line, which is how my proposal works without lint errors.
I also fixed the problem where the safesubst:ifsubst template wasn't closed. 174.138.212.166 (talk) 23:05, 3 August 2025 (UTC)Reply

Add role="presentation" on layout table

edit

More specifically, edit the second line so that

{| class="hidden-archive mw-collapsible mw-archivedtalk {{{{{|safesubst:}}}#if:{{{expand|{{{collapse|}}}}}}||mw-collapsed}}" {{ safesubst:<noinclude/>ifsubst|1=style="box-sizing: border-box; border: 1px solid #a2a9b1; width: 100%;clear: both;text-align: center; padding: 1px;margin: 0.2em auto 0;font-size:100%;"}}

would become

{| role="presentation" class="hidden-archive mw-collapsible mw-archivedtalk {{{{{|safesubst:}}}#if:{{{expand|{{{collapse|}}}}}}||mw-collapsed}}" {{ safesubst:<noinclude/>ifsubst|1=style="box-sizing: border-box; border: 1px solid #a2a9b1; width: 100%;clear: both;text-align: center; padding: 1px;margin: 0.2em auto 0;font-size:100%;"}}

. Sapphaline (talk) 11:21, 22 August 2025 (UTC)Reply

cc @Izno and @Stjn who have spent more time looking at this than I have. Sohom (talk) 14:56, 31 August 2025 (UTC)Reply