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
 
 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, and the ULS extension is enabled.
 
 getULSLabels ()
 Get the ULS button label, accounting for the number of available languages.
 

Member Function Documentation

◆ 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, and the ULS extension is enabled.

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: