Vector is the current MediaWiki default skin on all Wikimedia Foundation wikis (since May 2010) and the successor to MonoBook.

Clone this repo:
  1. d240bb9 Localisation updates from https://translatewiki.net. by Translation updater bot · 33 minutes ago master wmf/branch_cut_pretest
  2. 45306ea Merge "Show night mode gadget disable message on the correct section" by jenkins-bot · 8 hours ago
  3. b158601 Merge "[Vector 2022] Indicate support for new heading HTML" by jenkins-bot · 8 hours ago
  4. 801c528 Dark mode should default to day theme by Jon Robson · 17 hours ago
  5. 11654b7 [Vector 2022] Indicate support for new heading HTML by Jon Robson · 7 weeks ago

Vector Skin

Installation

See https://www.mediawiki.org/wiki/Skin:Vector.

Configuration options

See skin.json.

Also see configuration.md

Development

Node version

It is recommended to use nvm to use the version of node defined in .nvmrc during local development. This ensures consistency amongst development environments.

Coding conventions

We strive for compliance with MediaWiki conventions:

https://www.mediawiki.org/wiki/Manual:Coding_conventions

Additions and deviations from those conventions that are more tailored to this project are noted at:

https://www.mediawiki.org/wiki/Reading/Web/Coding_conventions

Pre-commit tests

A pre-commit hook is installed when executing npm install. By default, it runs npm test which is useful for automatically validating everything that can be in a reasonable amount of time. If you wish to defer these tests to be executed by continuous integration only, set the PRE_COMMIT environment variable to 0:

$ export PRE_COMMIT=0
$ git commit

Or more succinctly:

$ PRE_COMMIT=0 git commit

Skipping the pre-commit tests has no impact on Gerrit change identifier hooks.

Hooks

See hooks.txt.