Template talk:Navbox/Archive 9

Localization problem
Hi! Can some smart Navboxer take look at latvian local template lv:Veidne:Navbox. I've copied all known templates from english wikipedia (except doc templates). All is ok except group titles - they are without bold and background color. (See lv:Veidne:Francijas aizjūras departamenti un teritorijas.) Below line too is without color. Somewhere between navbox title and 1st group default styling is lost. Please help! --Kikos (talk) 14:01, 11 July 2008 (UTC)
 * I think you need to copy all of the CSS code for navboxes into the MediaWiki:Common.css page. Take a look at MediaWiki:Common.css in English wikipedia and copy all of the lines for navboxes into the lv:MediaWiki:Common.css page (be sure to delete the old navbox CSS lines first; also, note that you need to be an admin to do this).  Then clear your cache and it should work.  Please let me know if you need assistance with this.  --CapitalR (talk) 19:26, 11 July 2008 (UTC)
 * Thanks! --ScAvenger (talk) 12:29, 12 July 2008 (UTC)

Hide
Hello, I'm making a navbox (albeit much simpler than this one) for another MediaWiki site and the one thing I cant seem to get is the show/hide button and I was wondering if somebody could help me with the code for it. Thanks Highfields (talk) (contribs) 10:34, 16 July 2008 (UTC)
 * You'll need to copy the contents of Wikipedia:WikiProject Transwiki/MediaWiki:Common.js (basically a copy of Wikipedia's own MediaWiki:Common.js, but with most of the Wikipedia-specific stuff cut out) to that wiki's MediaWiki:Common.js file. It's the one that starts at " ", but you should be able to safely copy everything there if you wish (there are a number of other things that will be useful, as well as some bug fixes). -- Ned Scott 12:28, 16 July 2008 (UTC)

Is it possible to construct templates with tabs?
(Originally From Technical Village pump)

Hello, is it possible to construct templates with tabs (See the figure as an example)? It will be very usful in all wikipedia project, making many articles in different but related aspects more organized, especially for those involving generations of objects (Example: One tab for the related topics of one generation). In the original discussion, some technical problems appeared when the template is constructed. So I moved the discussion here to ask for help. The following two are the embryonic forms of the required templates (Written in Chinese since the topic is brought from the Chinese Wikipedia). Since my English is not good enough to describe the technical situation, please do try to click the tabs of the embryonic forms.

An embryonic forms of method 1(Using, whose disadvantage is more difficult to arrange typesetting):

| | | |  , but that won't prevent people from manually collapsing the navbox... Why do you need this functionality disabled, anyways? — Dino guy  1000  17:20, 9 August 2008 (UTC)
 * will not collapse the navbox and hide the show/hide link. — Edokter  •  Talk  • 22:03, 9 August 2008 (UTC)

Help with helpbox
May I ask someone here who is template-savvy to add the [hide] button to template:helpbox? I tried it, but it broke the centering of the header text, especially when it wrapped onto a second line. Much obliged.--Father Goose (talk) 02:53, 11 August 2008 (UTC)

I need help
Can you tell me how to add collapsibility to a template. That would be really helpful because I'm the template designer on a wikia and I need to know how to make my templates colloapsible. Thank You. Please reply on my Talk Page. Zero (talk) 06:32, 15 August 2008 (UTC)

Force template shown in 1 article?
How do I force a template to be shown in an article, eventho it should by default be hidden in other articles? E.g.
 * bio1: hidden
 * bio2: hidden
 * cabinet article: shown
 * bio4: hidden -- Jeandré, 2008-08-15t21:42z


 * Make your template have a state parameter like this:




 * Then, when you go to use the template in the page where you want it to be uncollapsed, include this code: .  For pages where you want it to just automaticlly decide whether to collapse itself or not, just use  .  You can also force it to be collapsed by using  .  Hope that helps, --CapitalR (talk) 18:51, 16 August 2008 (UTC)


 * Perfect, thanks. -- Jeandré, 2008-08-24t15:29z