Go to file
Timo Tijhof 56e566f351 Improve and simplify typehint and type docs in VectorTemplate
* renderPortals() - Takes array only, enforce this with a type hint.
* renderPortal() - Actually takes either array or string as $content,
  fix the type doc to match the code.
* renderNavigation() - Simplify by removing support for non-array
  $elements, fixing one caller.

This and other minor changes are tracked under T140664, which intends
to reduce code complexity in Vector to (potentially) make it portable
to an HTML template.

Change-Id: Idc95d023a55c83450b041109745cfbcbcd04f580
2018-01-30 15:59:35 -08:00
components Restore indicator for menuForceShow of tab menus 2017-11-19 19:34:15 +01:00
i18n Localisation updates from https://translatewiki.net. 2018-01-29 21:55:56 +01:00
images Optimize SVGs and align to WikimediaUI color palette 2017-10-24 01:18:07 -07:00
screenshots Add skin screenshot for the installer 2017-08-11 15:37:34 -04:00
skinStyles OOUI: Remove confusing 'position' override 2018-01-16 19:25:38 +00:00
.eslintrc.json build: Replace jshint and jscs with eslint 2016-11-29 08:39:55 -08:00
.gitignore
.gitreview
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 15.0.0 2017-12-30 04:04:36 +00:00
.stylelintrc.json Use json extension for .stylelintrc 2017-08-19 06:46:03 +00:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md 2017-06-07 13:51:49 +04:30
collapsibleTabs.js build: Update eslint-config-wikimedia 0.4->0.5, eslint 19->20 2017-08-25 16:21:21 +01:00
composer.json Update Minus-X from 0.2.1 to 0.3.0 in Vector skin 2018-01-26 16:48:44 +01:00
COPYING
Gruntfile.js Use json extension for .stylelintrc 2017-08-19 06:46:03 +00:00
hooks.txt Remove 'SkinVectorStyleModules' hook 2018-01-26 10:33:47 -08:00
jsduck.json
package.json build: Update eslint-config-wikimedia 0.4->0.5, eslint 19->20 2017-08-25 16:21:21 +01:00
print.less Hygiene: improve Math formula print styling comment 2018-01-16 10:05:53 -06:00
README.md Print logo should use an absolute URI 2017-10-11 19:06:29 +00:00
ResourceLoaderLessModule.php Do not fail when we can't get the config 2017-12-29 22:55:33 +00:00
responsive.less Use global variable for tablet media query in responsive.less 2016-12-13 15:27:38 -08:00
screen-hd.less Remove position: absolute from #p-logo element 2017-07-13 16:28:08 +08:00
screen.less build: Introduce stylelint and make pass 2016-11-29 08:40:03 -08:00
skin.json Revert "Revert "Print styles in Vector are no longer feature flagged"" 2017-12-27 11:26:29 +00:00
SkinVector.php Clarify class commment for SkinVector and VectorTemplate 2018-01-30 15:56:42 -08:00
variables.less chmod -x variables.less 2017-08-23 22:37:00 -07:00
vector.js Fix dysfunctional collapseCondition when right-most tab is the star 2017-11-30 18:53:02 +00:00
Vector.php
VectorHooks.php Rename file Hooks.php to match class 2017-12-09 21:32:56 +01:00
VectorTemplate.php Improve and simplify typehint and type docs in VectorTemplate 2018-01-30 15:59:35 -08:00

Vector Skin

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