MediaWiki:Vector

From OniGalore

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

  • 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 sidebar is anchored in place so that scrolling down an article does not affect the sidebar's position.
  • The background of the code style 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.
  • Several link icon customizations:
    • A custom external link arrow replaces the default one (MediaWiki default external link icon.png).
    • External links to other subdomains on Oni2.net get a sideways arrow.
    • Links formatted as if they're external but which point back to this wiki get a looping arrow like this.
    • External links that specifically go to movie files get a movie icon.
    • External links that specifically go to sound files get a 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).

Vector.js

There are currently no modifications to Vector's JavaScript.