Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
Loading...
Searching...
No Matches
MediaWiki\Skins\Vector\SkinVector22 Class Reference
+ Inheritance diagram for MediaWiki\Skins\Vector\SkinVector22:
+ Collaboration diagram for MediaWiki\Skins\Vector\SkinVector22:

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 ()
 
- Public Member Functions inherited from MediaWiki\Skins\Vector\SkinVector
 isResponsive ()
 @inheritDoc
 

Protected Member Functions

 isLegacy ()
 Temporary function while we deprecate SkinVector class.
 
- Protected Member Functions inherited from MediaWiki\Skins\Vector\SkinVector
 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.
 

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getTemplateData()

MediaWiki\Skins\Vector\SkinVector22::getTemplateData ( )
Returns
array

Reimplemented from MediaWiki\Skins\Vector\SkinVector.

◆ isLegacy()

MediaWiki\Skins\Vector\SkinVector22::isLegacy ( )
protected

Temporary function while we deprecate SkinVector class.

Returns
bool

Reimplemented from MediaWiki\Skins\Vector\SkinVector.

◆ isTableOfContentsVisibleInSidebar()

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.

◆ isUserInTocTreatmentBucket()

MediaWiki\Skins\Vector\SkinVector22::isUserInTocTreatmentBucket ( )

Check whether the user is bucketed in the treatment group for TOC.

Returns
bool

The documentation for this class was generated from the following file: