Jump to content
  • 0

Top & Left Menus move to content area on certain pages.


AdamRusted

Question

Hey guys, I'm trying to implement something along the lines of Wikipedia's category by month system. It seems to have moved everything from outside the main box inside. I've attached a screenshot to demonstrate what's going on. I'm using the standard Common.css and code from Wikipedia.

Screen Shot 2017-12-23 at 23.01.40.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

A broken layout like that is usually caused by you either having extra open tags or extra closed tag (like you have a <div> but no corresponding </div>, or you have an extra </div> without the associated <div> earlier on). Doesn't have to be div, could be any block-level tag such as <table> too.

If you're copying templates from Wikipedia, you're going to need a handful of settings and extensions installed in order to make them work correctly. Click the links in each point for more info.

  • Ensure that Tidy is enabled: $wgTidyConfig. My recommendation is to use the first example on that page under the Examples heading; it will require that the tidy PHP extension (not MediaWiki extension) is installed on your server. If Tidy is not enabled, broken layouts like the above can happen due to how the wikitext parser operates differently when not using Tidy, even if there is no actual issue with your wikitext.
  • Ensure that you have installed the following MediaWiki extensions: ParserFunctions and Scribunto
Edited by Skizzerz
clarify (see edit history)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.