Template talk:Hidden begin
Template:Hidden begin 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. |
Archives: 1 |
|
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 8 sections are present. |
Hiding templates may be obsolete
edit“style” named parameter
edittemplate | accepts | ||
---|---|---|---|
{{hidden}} | style | headerstyle | contentstyle |
{{hidden begin}} | (no equiv) | titlestyle | bodystyle |
Would it be possible to give {{hidden begin}} a “style” named parameter to set (additional) CSS styles for the overall, outermost <div>? Unician ∇ 22:00, 17 May 2014 (UTC)
- Tested with Firefox and MS Internet Explorer on Windows7, is seems that the size parameter was ignored.
{{Hidden begin|style = "width:400px; overflow:auto;";|title=<small>Genus: ''[[Js98virus]]''</small>}} *<small>''[[Escherichia virus Bp7]]''</small> *<small>''[[Escherichia virus IME08]]''</small> *<small>''[[Escherichia virus JS10]]''</small> *<small>''[[Escherichia virus JS98]]''</small> *<small>''[[Escherichia virus QL01]]''</small> *<small>''[[Escherichia virus VR5]]''</small> {{hidden end}}
places the show/hide link on far right. Instead
<div style="width:400px;overflow:auto;"> {{Hidden begin|title=<small>Genus: ''[[Js98virus]]''</small>}} *<small>''[[Escherichia virus QL01]]''</small> *<small>''[[Escherichia virus VR5]]''</small> {{hidden end}} </div>
works pretty well. Looked at the code of the template here and everything looks fine. Tested also the code as it should be generated by the template (in the first case) and - I wonder - it works:
<div class="mw-collapsible mw-collapsed" style="width:100%;font-size:95%;padding:4px;border:none;width:400px;overflow:auto;"><!-- --><div style="font-size:100%;line-height:1.6;font-weight:bold;background:transparent;text-align:left;"><small>Genus: ''[[Js98virus]]''</small></div><!-- --><div class="mw-collapsible-content" style="background:transparent;text-align:left;"> *<small>''[[Escherichia virus QL01]]''</small> *<small>''[[Escherichia virus VR5]]''</small> </div></div>
I really have no explanation what's going wrong when using the template. At least the secons sample is some workaround.
Background: In many virus articles, the show/hide button of the collapsible virus lists on the left is often placed within the virus box on the right, and I'm looking for a way to avoid this (eg. using something like width:75%).
Is there any expert who knows better? --Ernsts (talk) 23:58, 2 January 2019 (UTC)
- I found it: no quotes for teplate parameters!
{{Hidden begin|style = width:400px; overflow:auto;|title=<small>Genus: ''[[Js98virus]]''</small>}}
--Ernsts (talk) 00:40, 3 January 2019 (UTC)
Protected edit request on 13 June 2014
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
"Toggle" is a bit vague here, so please replace the second line
-->{{#ifeq:{{{toggle|}}}|left
with
-->{{#ifeq:{{{showhide|}}}{{{toggle|}}}|left
(...and, for consistency, the comment lines
| <!------------------------------------------------------------ toggle=left, so format [hide/show] link on lefthand side: ------------------------------------------------------------- -->| <!------------------------------------------------------------ toggle/=left, so format [hide/show] link on righthand side: -------------------------------------------------------------
with, respectively,
| <!------------------------------------------------------------------------- showhide (or toggle) = left, so place [hide/show] link on lefthand side: -------------------------------------------------------------------------- -->| <!------------------------------------------------------------------------- showhide (toggle) /= left, so place [hide/show] link on righthand side: --------------------------------------------------------------------------
...) I'll then amend the documentation accordingly. Sardanaphalus (talk) 22:52, 13 June 2014 (UTC)
- Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. — {{U|Technical 13}} (e • t • c) 23:49, 13 June 2014 (UTC)
- Already done and hope you're feeling okay. Sardanaphalus (talk) 01:17, 14 June 2014 (UTC)
- Already done Marked by requester. —cyberpower ChatOnline 18:01, 17 June 2014 (UTC)
hiding sections from toc
editIf hidden begin contains sections how can these be kept out of the table of contents? See Caucasian War. Ideal would be one TOC inside and other TOC outside the hidden begin. Is there some kind of scope option that makes things like --notoc-- active only inside the hidden begin? Benjamin Trovato (talk) 01:19, 10 January 2015 (UTC)
- Benjamin Trovato that chunk of hidden text violates MOS:COLLAPSE. if the purpose is to use it for future article development, it should be on the talk page, or commented out. Frietjes (talk) 01:27, 10 January 2015 (UTC)
- Thank you Benjamin Trovato (talk) 01:37, 10 January 2015 (UTC)
Template-protected edit request on 1 February 2018
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please merge the sandbox to get rid of the deprecated NavFrame
collapsing mechanism in favor of the core mw-collapsible
. Tacsipacsi (talk) 09:59, 1 February 2018 (UTC)
- looks good in the examples in the documentation, so done! Frietjes (talk) 15:54, 1 February 2018 (UTC)
This template is used in many articles
editI found over 7,000 articles that include this template, even though it is not intended to be used in articles. Should it be replaced by another template (or removed) when it appears in these articles? Jarble (talk) 02:57, 7 February 2021 (UTC)
Infobox will cause show/hide selection to be truncated
editHi, If this tempalte is used when the infobox (on the right) is in its way, the titlebar will be covered and the show/hide selection to be truncated and appear below. I have reduced the width of the titlebar to not be covered by the infobox, e.g. width=50%, the show/hide selection will still not appear on its titlebar but still get truncated below. The truncation can be duplicated on a computer, but I have not idea if it will happen on mobile devices.
Can any template editors help to resolve? The document page show that reducing the width prevents the truncation, but in real life it does not. Adding {{clear}} before the template is not an option. Flipchip73 (talk) 13:11, 15 July 2021 (UTC)
Should this talk page be merged with Template:hidden's?
editAs are {{sort}} and {{table cell templates}}. — Guarapiranga ☎ 00:29, 8 June 2022 (UTC)