Go to file
Nicholas Ray 356c976bb3 Add Coding Conventions Section to Vector README
Although the convention of where to put conventions remains somewhat
contentious, the team's desired conventions for Desktop Improvments have
so far been, for the most part, general and could be useful for any
project our team owns (e.g. MobileFrontend, Minerva, etc).

Therefore, I added/made revisions to the
https://www.mediawiki.org/wiki/Reading/Web/Coding_conventions wiki page
as this seems the be the single source of truth of our team specific
conventions that span across repos.

This commit just links to these changes which follows the same pattern
as Minerva and MobileFrontend.

Additional Changes:

* Added installation section similar to Minerva Skin

Bug: T239269
Change-Id: I41c71fba1228086f1830d8bb0808227b62ebf5cd
2020-02-05 15:26:15 -07:00
.phan Upgrade to newer phan 2019-03-20 19:37:59 -07:00
components Restore arrow flipping for menu indicator 2019-12-03 17:29:14 +01:00
i18n Localisation updates from https://translatewiki.net. 2020-01-21 08:01:51 +01:00
images Use stroke-width="1" instead of stroke-width=".99992" 2019-10-17 09:26:05 +02:00
includes Dev: Include closed body and html tags in getTrail 2020-01-17 19:16:32 +00:00
screenshots Add skin screenshot for the installer 2017-08-11 15:37:34 -04:00
skinStyles hygiene: Make LESS imports non-ambigious 2019-10-25 20:54:49 +00:00
.eslintrc.json build: Update linters 2019-10-31 21:43:20 +00:00
.gitignore Merge "Upgrade to newer phan" 2019-03-21 06:55:46 +00:00
.gitreview Use track=1 instead of defaultbranch=master in .gitreview 2016-10-24 17:30:32 -07:00
.phpcs.xml Add method scope visibility 2018-11-01 21:01:32 +01:00
.stylelintrc.json build: Bump devDependencies to latest 2018-02-26 10:29:23 -08:00
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-04 01:45:34 +00:00
collapsibleTabs.js Decrease onresize debounce from 100ms to 10ms 2019-09-11 19:44:04 +00:00
composer.json composer: Stop claiming this skin supports PHP 5.5+, it uses PHP 7.1+ features 2020-01-21 08:45:44 -08:00
COPYING Use the plain-text GPL and fix 'license-name' to match SPDX conventions 2015-01-29 17:04:29 +01:00
Gruntfile.js build: Updating mediawiki/minus-x to 0.3.2 2019-12-19 03:47:15 +00:00
hooks.txt Remove 'SkinVectorStyleModules' hook 2018-01-26 10:33:47 -08:00
jsduck.json collapsibleTabs: Clean up and simplify code 2016-11-29 02:25:00 +00:00
package-lock.json build: Updating npm dependencies 2020-01-10 18:36:03 +00:00
package.json build: Updating npm dependencies 2020-01-10 18:36:03 +00:00
print.less Fix CSS selector in 'print.less' 2019-12-13 16:43:42 -08:00
README.md Add Coding Conventions Section to Vector README 2020-02-05 15:26:15 -07:00
responsive.less hygiene: Make LESS imports non-ambigious 2019-10-25 20:54:49 +00:00
screen-hd.less Move DataAfterContent outside of main content block 2019-06-20 17:55:55 +00:00
screen.less build: Introduce stylelint and make pass 2016-11-29 08:40:03 -08:00
skin.json [hygiene] [skin.json] simplify BeforePageDisplayMobile hook 2020-01-17 20:08:01 +00:00
variables.less hygiene: Make LESS imports non-ambigious 2019-10-25 20:54:49 +00:00
vector.js build: Update linters 2019-10-07 16:41:27 +01:00

Vector Skin

Installation

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

Development

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

Configuration options

Logo used in print styles. Keys are url, width, and height (in pixels). Note that this solution only works correctly if the image pointed to by url is an SVG that does not specify width and height attributes, or its width and height match the corresponding variables below. Alternatively, a PNG or other type of image can be used, but its dimensions also need to match the corresponding variable below. That in turn may result in blurry images, though.

The URL can be absolute or relative.

Example configuration:

$wgVectorPrintLogo = [
	'url' => 'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg',
	'width' => 174,
	'height' => 27
];
  • Type: Array
  • Default: false