Forum:Navbox need help



Explaining using image is simpler than words

I am trying to create the navbox, look like the left. I copy the code from another website and pasted on my website. Then what I got is the navbox on the right.

What is the problem ? My navbox is clearly different from what I intend to have. There is no purple background, no (hide/show) spoiler, and look totally ulgy due to its big size.

Then I went to another wiki (the sims) to copy a template, but the result is the same. I got a different type of navbox. The right is my result, the left is the template I desire to copy. I want a template with hide and show spoiler, a very nice border, curving border.

I have no knowledge of coding so anyone can provide simple and brief guide ?


 * Please can you provide links to the wiki you are trying to do it on, as well as the ones you are copying from. At a guess, I'd guess you don't have "Template:Navbox" on your wiki, whereas it does exist on the wikis you are copying from, so you need to create that template as well. But if you provide links, it will help say for sure. Thanks-- Category:Acer4666 16:13, August 30, 2012 (UTC)

In order for the show/hide to work, you need to have the following code on your wiki's MediaWiki:Common.jspage: importScriptPage('ShowHide/code.js', 'dev'); Cc71  talk  16:27, August 30, 2012 (UTC)


 * Looks like a CSS issue to me (in the first screenshot). If he didn't have the needed template, it would just put a link to that template. And the Show/Hide thing is done by JavaScript that needs to be added to your wiki, unless it's up to date already, in which case you can use the  version. - Tjcool007 (Wall) 16:29, August 30, 2012 (UTC)

Well, here is the link of my website I intend to implement the new navbox (http://ycm.wikia.com/wiki/Yu-Gi-Oh_Card_Maker), but i failed a few times. Then I started to test the navbox on my testing wiki, (http://byfanonworld.wikia.com). Both of the screenshot I took were from the latter website, my testing site for new template.

By the way, I did copy almost every template from the wiki I intended to copy, but I just don't get it why there is such a big differences. There must be something amiss. Here is the first website I intend to copy, (yugioh.wikia.com). The second website I intend to copy, (sims.wikia.com)

Edit : About the hide/show problem, I fixed it by copying the Mediawiki in this community wiki to my wiki. Thanks.


 * Thanks for the links - the changes will likely be due to css on the wikis you're copying from. If you look at w:c:sims:mediawiki:Wikia.css, do a ctrl+f to find the "Default skin for navigation boxes" section and copy all of that to reproduce the sims style. On yu-gi-oh, I think the relevant css is w:c:yugioh:MediaWiki:Wikipedia.css, under the "Default style for navigation boxes" section. If you copy either of those sections into your w:c:ycm:Mediawiki:Wikia.css page, the styles should look the same (hopefully...)-- Category:Acer4666 22:12, August 30, 2012 (UTC)