MediaWiki:Common: Difference between revisions
Jump to navigation
Jump to search
(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...") |
m (um, yeah, I meant to do that) |
||
Line 19: | Line 19: | ||
* There are also some fixes for IE and table sorting. | * There are also some fixes for IE and table sorting. | ||
[[Category:Policies and | [[Category:Policies and documentation]] |
Revision as of 01:25, 6 June 2011
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
- Common.js first looks at whether we're editing a page, and if so, it imports the code from MediaWiki:Common.js/edit.js.
- If we're on our watchlist page, MediaWiki:Common.js/watchlist.js is imported.
- 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.