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
1.2 KiB
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
$wgVectorPrintLogo
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