MediaWiki:Vector: Difference between revisions

updated for new content of MediaWiki:Vector.css
(added documentation of TOC markup)
(updated for new content of MediaWiki:Vector.css)
 
Line 1: Line 1:
The purpose of [[MediaWiki:Vector.css]] and [[MediaWiki:Vector.js]] is to augment the MediaWiki CSS and JS code in ways that are tailored to, or necessary to improve, the Vector skin. Vector used to be the default skin but was superseded by Vector 2022, which OniGalore switched to in 2025. Although wiki-wide changes are typically made to [[MediaWiki:Common.css]] and [[MediaWiki:Common.js]], customizations on these Vector pages will override customizations on the Common pages for anyone still using Vector. On top of any changes to Vector or Common pages come any changes made to users' ''local'' vector.css and vector.js pages.
The purpose of [[MediaWiki:Vector.css]] and [[MediaWiki:Vector.js]] is to augment the MediaWiki CSS and JS code in ways that are tailored to, or necessary to improve, the Vector skin. Vector used to be the default skin but was superseded by Vector 2022, which OniGalore switched to in 2025; see [[MediaWiki:Vector-2022.css]] and [[MediaWiki:Vector-2022.js]] for modifications to that skin. Wiki-wide changes are typically made to [[MediaWiki:Common.css]] and [[MediaWiki:Common.js]], but customizations on these skin-specific pages will override customizations on the Common pages for anyone still using Vector. On top of any changes to Vector or Common come any changes made to users' ''local'' vector.css and vector.js pages.


==Vector.css==
==Vector.css==
*Vector.css starts off by anchoring the sidebar in place so that scrolling down an article does not affect the sidebar's position.
*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.


*The background of the code style (the style applied to any line of text that begins with at least one space character) is darkened, for better contrast against the standard page background.
*The sidebar is anchored in place so that scrolling down an article does not affect the sidebar's position.
 
*The background of the <code>code style</code> is darkened, for better contrast against the standard page background.


*The text in the wiki's diff view is made normal size, for better readability.
*The text in the wiki's diff view is made normal size, for better readability.


*Classes are set up for use by TOC (table of contents) mods such as [[Template:TOCnonum]] and [[Template:TOClimit]].
*Classes are set up for use by TOC (table of contents) mods such as [[Template:TOCnonum]] and [[Template:TOClimit]].
*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).


==Vector.js==
==Vector.js==