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.js page: 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)