MediaWiki:Common: Difference between revisions

updated for removal of content that was moved to MediaWiki:Vector-2022.css
m (I removed this in an earlier edit by accident)
(updated for removal of content that was moved to MediaWiki:Vector-2022.css)
Line 1: Line 1:
The purpose of [[MediaWiki:Common.css]] and [[MediaWiki:Common.js]] is to augment the MediaWiki CSS and JS code in a way that takes effect for all users. Note that changes to skin-specific pages such as MediaWiki:Vector.[css/js] (our original default skin) or MediaWiki:Vector-2022.[css/js] (our current default skin) override these general changes for anyone using that particular skin. Those in turn are overridden by users' local vector.css and vector.js pages.
The purpose of [[MediaWiki:Common.css]] and [[MediaWiki:Common.js]] is to augment the MediaWiki CSS and JS code in a way that takes effect for all users. Note that changes to skin-specific pages such as [[MediaWiki:Vector-2022.css]] and [[MediaWiki:Vector-2022.js]] (for our current default skin) or [[MediaWiki:Vector.css]] and [[MediaWiki:Vector.js]] (for our original default skin) or  override these general changes for anyone using that particular skin. Those in turn are overridden by users' local vector.css and vector.js pages.


Following are all the features of the CSS and JS pages in the order in which they occur.
Following are all the features of the CSS and JS pages in the order in which they occur.
Line 6: Line 6:
Common.css contains various small fixes borrowed from Wikipedia for shortcomings in MediaWiki's appearance or behavior. There are additional appearance customizations created by us, plus supporting markup for features added to the wiki through Common.js. The Wikipedia carry-overs are not documented below because the comments in the markup should suffice. Following are our self-made customizations:
Common.css contains various small fixes borrowed from Wikipedia for shortcomings in MediaWiki's appearance or behavior. There are additional appearance customizations created by us, plus supporting markup for features added to the wiki through Common.js. The Wikipedia carry-overs are not documented below because the comments in the markup should suffice. Following are our self-made customizations:


*The "? Help" button which would appear on some special pages at the top-right is hidden because it pushes down the lede text on category pages. We have a Help link in the sidebar at all times so it's unneeded anyway.
*Many classes are declared for the message boxes that can be generated by [[Template:Fmbox]].
 
*Several link icon customizations:
**A custom [http://www.example.com external link arrow] replaces the default one ([[Image:MediaWiki default external link icon.png|12px]]).
**External links to other subdomains on Oni2.net get a [http://iritscen.oni2.net sideways arrow].
**Links formatted as if they're external but which point back to this wiki get a looping arrow [http://wiki.oni2.net/Main_Page like this].
**External links that specifically go to movie files get a [http://geyser.oni2.net/genesis/E3_1998/Oni_Trailer_(E3_1998).mov movie icon].
**External links that specifically go to sound files get a [http://geyser.oni2.net/oni1/music/09-Ambient_Suite.mp3 sound icon].
**Interwiki links get a [[wp:Green Arrow|green arrow]] to show that they point to a fellow wiki (by default MediaWiki shows no outbound arrow at all for interwiki links, ambushing the reader with a site change when they click it).
 
*Following this are many classes declared for the message boxes that can be generated by [[Template:Fmbox]].


*A declared is for use with the unfinished hover table feature (see comments under Common.js below).
*A declared is for use with the unfinished hover table feature (see comments under Common.js below).
Line 25: Line 15:


*Finally, support is added for references to use letters instead of numbers, which is utilized by [[Template:Reflist]].
*Finally, support is added for references to use letters instead of numbers, which is utilized by [[Template:Reflist]].
These changes have all been marked with a "TODO" note to port them to use the extension TemplateStyles now that we have it installed.


==Common.js==
==Common.js==