Jump to content

Template talk:Hidden

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Hidden/doc)

Edit request 12 December 2022

[edit]

There's a stray apostrophe that's showing up on pages using this template, for example here: [1]. It also seems to be broken unless the template is on another line from preceeding text, as here: [2]. - Sumanuil. (talk to me) 00:37, 12 December 2022 (UTC)[reply]

I fixed the apostrophe issue, I am looking into the new line issue. Terasail[✉️] 00:54, 12 December 2022 (UTC)[reply]
 Done @Sumanuil This should be fixed now. Terasail[✉️] 01:29, 12 December 2022 (UTC)[reply]

Doc updates, post-merge

[edit]

@Terasail:, are you working on /doc updates to align with the recent code changes per the merge? Apologies, if I was too quick with my note, but I normally do them simultaneously. Mathglot (talk) 09:43, 12 December 2022 (UTC)[reply]

@Mathglot I left updating docs for today. I updated this doc for the renamed parameters and updated Hidden begin with the changes I made. Terasail[✉️] 14:40, 12 December 2022 (UTC)[reply]
@Terasail:, thanks. Mathglot (talk) 07:22, 13 December 2022 (UTC)[reply]

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]