MediaWiki:Vector: Difference between revisions
(only one change to diff view now) |
(added documentation of TOC markup) |
||
| 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 | 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. | ||
==Vector.css== | ==Vector.css== | ||
| Line 7: | Line 7: | ||
*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]]. | |||
==Vector.js== | ==Vector.js== | ||
Revision as of 05:03, 27 December 2025
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.
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 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 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.
Vector.js
There are currently no modifications to Vector's JavaScript.