Template talk:Hidden

Show button is too far away

[edit]

For me, the show button seems to be very far away visually from the heading name. Perhaps a good solution would be to have the show button be inline (regular left alignment), instead of floating it to the right? –Novem Linguae (talk) 21:06, 9 February 2023 (UTC)[reply]

@Novem Linguae You should be able to set the show/hide button to the left with the parameter |toggle=left. Terasail[✉️] 22:01, 9 February 2023 (UTC)[reply]
Thanks for the idea. Looks like that puts it before the title. Know of anything to put it after the title? –Novem Linguae (talk) 22:21, 9 February 2023 (UTC)[reply]
No, sorry. The show/hide button is handled by mw-collapsible and I am not aware of any way to do that. Terasail[✉️] 08:42, 10 February 2023 (UTC)[reply]

Show/hide a table?

[edit]

There is a long table at Blue moon that is of limited interest but is still relevant, so an obvious candidate for show/hide. But this template seems to choke when fed a table (see https://en.wikipedia.org/w/index.php?title=Blue_moon&diff=1241335711&oldid=1241281198 ). Or have I missed something? 𝕁𝕄𝔽 (talk) 16:27, 20 August 2024 (UTC)[reply]

Plain table wikitext cannot be put inside a template. See Help:Template#Hints and workarounds, starting with Similarly, it is not possible to use an ordinary pipe character ...
How to do it without templates is described in Help:Collapsing § Collapsible tables. —⁠andrybak (talk) 00:24, 21 August 2024 (UTC)[reply]
Yes, I knew about that but have never done one so hoped that this template would allow me to evade the inevitable for while longer . But I see that you have done the needful (thank you again) so I will look at how you have done it, for future reference. 𝕁𝕄𝔽 (talk) 22:07, 22 August 2024 (UTC)[reply]

Use of apostrophes/bullets instead of break tags?

[edit]

Greetings and felicitations. Is it possible to use bullets/apostrophes instead of HTML break tags to separate elements in the list in this template? I find carriage return separated bullets are easier to parse/read and therefore to edit. Also, what is meant by "This template prefers block formatting of parameters."? The image gives a hint, but I want to make certain that I understand it correctly. —DocWatson42 (talk) 00:35, 16 September 2024 (UTC)[reply]

Re: Is it possible to use bullets/apostrophes instead of HTML break tags to separate elements in the list in this template? – Yes, it is possible to use bullets inside template {{Hidden}}:
{{Hidden|1=The header|2=
* Red
* Green
* Blue
}}
Re: Also, what is meant by "This template prefers block formatting of parameters."? – this is a line from Wikipedia:TemplateData/Tutorial. There are two common ways of arranging the template parameters in the source wikitext:
1st: {{Example|param1=foo|param2=bar}}
vs
2nd: {{Example
|param1=foo
|param2=bar
}}
The first one is called "inline". The second one is called "block". For template {{Hidden}}, the TemplateData block doesn't specify the preferred format. If you give more details about how you encountered this string of text, we'll be able to give a more precise answer. Hope this helps. —⁠andrybak (talk) 04:05, 16 September 2024 (UTC)[reply]
I'm sorry for taking so long to reply—I lost track of this conversation. Apparently I found the phrase in Wikipedia:TemplateData/Tutorial. —DocWatson42 (talk) 11:36, 1 October 2024 (UTC) Edit: Thank you. ^_^ —DocWatson42 (talk) 11:37, 1 October 2024 (UTC)[reply]

"Hidden" template formatting issue

[edit]

See Wikipedia:Village pump (technical)#"Hidden" template formatting issue. ―Mandruss  22:23, 15 January 2025 (UTC)[reply]

Bug seems to be fixed

[edit]

The documentation says Sections included inside a hidden block result in broken anchors in the table of contents at the top of the page. However, it seems to work for me, both from an external link (eg template:hidden § You can't get here from the table of contents) and from the table of contents. I vaguely recall a recent change that might have affected this. I'd change it myself except for the possibility that it only works on my skin or with my browser. YBG (talk) 05:04, 13 July 2025 (UTC)[reply]