Template talk:Navbar-collapsible

Expand/Collapse preselection option
Just a thought of an inclusion of selecting whether the template appears pre-collapsed or pre-expanded? By this I mean, using the / function somehow, it would mean you could use the template like this: " " would show just as an unexpanded bar, however "  " would show it expanded. If this is implemented on the template end, that means that it wouldn't affect any templates out there that don't use the function, but those that do can elect to use it, but don't need to create two templates, just two functions from the one.

Who else thinks this is a good idea?

-- linca linca 06:56, 19 April 2007 (UTC)


 * It can't be done with this template. The collapsing statement  needs to appear in the opening tag of the table.  If you want that particular template's collapsibility to be set on a per-page bases use  . —Dispenser 18:15, 19 April 2007 (UTC)

bg:Шаблон:tnavbar-collapsible
Could you please insert bg:Шаблон:tnavbar-collapsible?Thank you.--Desertus Sagittarius 21:42, 2 September 2007 (UTC)
 * Interwiki links are added to this page: Template:Navbar-collapsible/doc. It's editable by everyone. Cheers. --MZMcBride 22:08, 2 September 2007 (UTC)

Boost title size to match that of
Due to a recent change in the navbox class CSS, the font-size of the title in other templates using this template is too small. The following changes make the font-size of the title match the size of standard s. Based on the latest database dump, there should be very few, if any, ill-effects. Once this change goes through, I'll be checking to make sure that everything is still okay.

Completely replace the code of this template with this new code:  

Thanks, --CapitalR (talk) 22:20, 1 April 2008 (UTC)


 * Disabled editprotected for the moment. See my reply at User talk:CapitalR/Navbox. — Edokter  •  Talk  • 22:27, 1 April 2008 (UTC)
 * ✅. — Edokter  •  Talk  • 14:51, 2 April 2008 (UTC)

Modifications to template
It looks like this template had some old band-aid fixes in it to make it look right; now that the code has been modified to look like that of, those old work-arounds should be removed (as it is causing the navbar to be off by a few pixels).

Namely, the "margin-left:2px;" should be removed and the "|nodiv=1" should be removed. In addition, the floating span tag should be changed to a floating div tag (due to the parser not always handling the span tag correctly; this is a known parser bug, and this is the best work around). In summary, the code for this template should be completely replaced by the following:

 

I tested this on a bunch of templates to make sure it works, and it seems to do the trick. Let me know if there are questions, --CapitalR (talk) 03:15, 10 April 2008 (UTC)


 * ✅ Happy‑melon 10:33, 10 April 2008 (UTC)

Question
when looking at the source of this template [//en.wikipedia.org/w/index.php?title=Template:Navbar-collapsible&action=edit see here], why is it that there is one Template in red at the bottom, where it lists the templates transcluded onto this template. Could that be fixed? -- Gman 124 talk 02:51, 18 February 2009 (UTC)
 * It won't be fixed unless it's (a) breaking something; or (b) you provide working code to fix it. Cheers. --MZMcBride (talk) 08:53, 20 February 2009 (UTC)

Centering
The most recent version of this template broke centering of the title, also looks like it is using "style" instead of "fontstyle" for the parameter. Suggested fix:

 

FYI I've not fully tested the above fix but am pretty sure it is right. PaleAqua (talk) 09:21, 20 March 2009 (UTC)

Link color of the v • d • e
I have received good responses about a template I created which unite several different elements of CONMEBOL. However, the biggest drawback has been coloring the link color of the v • d • e. I have tried and retried trying to make that font while. Any help would be greatly appreciated.

Jamen Somasu (talk) 13:31, 24 May 2010 (UTC)

Lua
Does the Lua version work? I've tried fixing the width of multiline Navbox titles (see here), and this template could be affected by any CSS changes needed so might need to use a div for this template's title. Jc86035 (talk) Use &#123;&#123;re&#124;Jc86035&#125;&#125; to reply to me 11:53, 10 January 2017 (UTC)

Template-protected edit request on 17 March 2019
Please revise the name of the DeLorean. The correct name is DeLorean not DeLorean DMC-12. Expandinglight5 (talk) 05:05, 17 March 2019 (UTC)
 * Red information icon with gradient background.svg Not done: this is the talk page for discussing improvements to the template . Please make your request at the talk page for the article concerned. – Jonesey95 (talk) 06:15, 17 March 2019 (UTC)

Template-protected edit request on 25 March 2020
Panama has 558 confirmed cases and 8 deaths and 2 recovered. Source: https://www.tvn-2.com/nacionales/personas-recuperadas-casos-COVID-Panama_0_5541195909.amp.html 190.219.162.190 (talk) 23:37, 25 March 2020 (UTC)
 * Red information icon with gradient background.svg Not done: this is the talk page for discussing improvements to the template . If possible, please make your request at the talk page for the article concerned. If you cannot edit the article's talk page, you can instead make your request at Requests for page protection.  P.I. Ellsworth   ed.  put'r there 15:15, 26 March 2020 (UTC)

Automatic template name
I propose to change recommended value in the documentation to. The second parameter of is described as "the name of the template", and the name of a template obviously does not include the "Template" namespace. Removing subst ensures continues to work after a template name change. There's no need to change anything in 's code—it already works with. Only a change in the documentation is necessary. — UnladenSwallow (talk) 02:33, 15 April 2020 (UTC); edited 17:22, 18 April 2020 (UTC)


 * Even better, use as the default value of the second parameter, allowing us to simply write: — UnladenSwallow (talk) 16:51, 15 April 2020 (UTC); edited 17:22, 18 April 2020 (UTC)


 * The above approach only worked for me because the article and the template happened to have the same name (sans the namespace). In all other cases it won't work because Wikicode is evaluated in the context of the article, not the template. Apologies for the confusion, and feel free to delete this entire section. — UnladenSwallow (talk) 17:22, 18 April 2020 (UTC)