Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
|
Public Member Functions | |
__construct (array $options) | |
Updates the constructor to conditionally disable table of contents in article body. | |
isTOCABTestEnabled () | |
isUserInTocTreatmentBucket () | |
Check whether the user is bucketed in the treatment group for TOC. | |
isTableOfContentsVisibleInSidebar () | |
Determines if the Table of Contents should be visible. | |
getHtmlElementAttributes () | |
@inheritDoc | |
getTemplateData () | |
![]() | |
isResponsive () | |
@inheritDoc | |
Protected Member Functions | |
isLegacy () | |
Temporary function while we deprecate SkinVector class. | |
![]() | |
getLanguagesCached () | |
Calls getLanguages with caching. | |
isLanguagesInContentAt ( $location) | |
shouldHideLanguages () | |
Show the ULS button if it's modern Vector, languages in header is enabled, and the ULS extension is enabled. | |
runOnSkinTemplateNavigationHooks (SkinTemplate $skin, &$content_navigation) | |
@inheritDoc | |
getStickyHeaderData ( $searchBoxData, $includeEditIcons) | |
Generate data needed to generate the sticky header. | |
getSearchData (array $searchBoxData, bool $isCollapsible, bool $isPrimary, string $formId, bool $autoExpandWidth) | |
Annotates search box with Vector-specific information. | |
MediaWiki\Skins\Vector\SkinVector22::__construct | ( | array | $options | ) |
Updates the constructor to conditionally disable table of contents in article body.
Note, the constructor can only check feature flags that do not vary on whether the user is logged in e.g. features with the 'default' key set. @inheritDoc
MediaWiki\Skins\Vector\SkinVector22::getTemplateData | ( | ) |
Reimplemented from MediaWiki\Skins\Vector\SkinVector.
|
protected |
Temporary function while we deprecate SkinVector class.
Reimplemented from MediaWiki\Skins\Vector\SkinVector.
MediaWiki\Skins\Vector\SkinVector22::isTableOfContentsVisibleInSidebar | ( | ) |
Determines if the Table of Contents should be visible.
TOC is visible on main namespaces except for the Main Page.
MediaWiki\Skins\Vector\SkinVector22::isUserInTocTreatmentBucket | ( | ) |
Check whether the user is bucketed in the treatment group for TOC.