MediaWiki:Common: Difference between revisions

updated docs of link icon overrides
(added mention of hidden Help button; removed mentions of TOCnonum/TOClimit because they are obsolete in Vector 2022; misc. wording)
(updated docs of link icon overrides)
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/MediaWiki:Vector.js (our original default skin) or MediaWiki:Vector-2022.css/MediaWiki:Vector-2022.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.[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.


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 9: Line 9:


*Several link icon customizations:
*Several link icon customizations:
**A custom [http://www.example.com external link arrow] replaces the default one ([[Image:MediaWiki default external link icon.png]]); the box element has been removed, making it visually less cluttered and easier to read.
**External links which use HTTPS are modified to use the [https://www.example.com same arrow] as HTTP links instead of the distracting and unnecessary padlock icon.
**External links to other subdomains on Oni2.net get a [http://iritscen.oni2.net sideways arrow].
**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 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].
**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 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).
**Interwiki links get a 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).
**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].


*Following this are many classes declared for the message boxes that can be generated by [[Template:Fmbox]].
*Following this are many classes declared for the message boxes that can be generated by [[Template:Fmbox]].