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

 isResponsive ()
 @inheritDoc
 
 getDefaultModules ()
 Provide styles required to present the server rendered page in this skin.
 
 getHtmlElementAttributes ()
 @inheritDoc
 
 getTemplateData ()
 

Protected Member Functions

 runOnSkinTemplateNavigationHooks (SkinTemplate $skin, &$content_navigation)
 @inheritDoc
 
 isLanguagesInContentAt (string $location)
 
 isLanguagesInContent ()
 Whether or not the languages are out of the sidebar and in the content either at the top or the bottom.
 
 getLanguagesCached ()
 Calls getLanguages with caching.
 
 isULSExtensionEnabled ()
 Check whether ULS is enabled.
 
 shouldHideLanguages ()
 Show the ULS button if it's modern Vector, languages in header is enabled, the ULS extension is enabled, and we are on a subect page.
 
 getULSLabels ()
 Get the ULS button label, accounting for the number of available languages.
 

Member Function Documentation

◆ getDefaultModules()

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

Provide styles required to present the server rendered page in this skin.

Additional styles may be loaded dynamically by the client.

Any styles returned by this method are loaded on the critical rendering path as linked stylesheets. I.e., they are required to load on the client before first paint.

Returns
array

◆ getLanguagesCached()

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

Calls getLanguages with caching.

Returns
array

◆ getTemplateData()

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

◆ getULSLabels()

MediaWiki\Skins\Vector\SkinVector22::getULSLabels ( )
finalprotected

Get the ULS button label, accounting for the number of available languages.

Returns
array

◆ isLanguagesInContent()

MediaWiki\Skins\Vector\SkinVector22::isLanguagesInContent ( )
finalprotected

Whether or not the languages are out of the sidebar and in the content either at the top or the bottom.

Returns
bool

◆ isLanguagesInContentAt()

MediaWiki\Skins\Vector\SkinVector22::isLanguagesInContentAt ( string $location)
protected
Parameters
string$locationEither 'top' or 'bottom' is accepted.
Returns
bool

◆ isULSExtensionEnabled()

MediaWiki\Skins\Vector\SkinVector22::isULSExtensionEnabled ( )
finalprotected

Check whether ULS is enabled.

Returns
bool

◆ shouldHideLanguages()

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

Show the ULS button if it's modern Vector, languages in header is enabled, the ULS extension is enabled, and we are on a subect page.

Hide it otherwise. There is no point in showing the language button if ULS extension is unavailable as there is no ways to add languages without it.

Returns
bool

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