MediaWiki:Common

From OniGalore
Revision as of 23:18, 5 June 2011 by Iritscen (talk | contribs) (Created page with "The purpose of MediaWiki:Common.css and MediaWiki:Common.js is to augment the MediaWiki CSS and JS code, in a way that is effective for all users. ==Common.css== *Common...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The purpose of MediaWiki:Common.css and MediaWiki:Common.js is to augment the MediaWiki CSS and JS code, in a way that is effective for all users.

Common.css

  • Common.css mainly contains fixes for annoying glitches in MediaWiki's appearance or behavior, and minor style tweaks.
  • There are also various extended standards declared here for the appearance of things like infoboxes.
  • The NavFrame class is declared here, which is used by message templates such as the nifty divhide box.
  • There's also a modified fix brought over from WP for the annoyingly small text MediaWiki uses for monospaced fonts, which show up when you use <code>, <tt>, and <pre> tags.

Common.js

  • Next, Common.js sets up hasClass(), which is used by the next code, which places the show/hide buttons in those divhide boxes mentioned above. The code after that uses the NavFrame class from Common.css to create the collapsible tables that divhide uses.
  • There are also some fixes for IE and table sorting.