Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
|
VectorComponentPinnableHeader component. More...
Public Member Functions | |
__construct (MessageLocalizer $localizer, bool $pinned, string $id, string $featureName, ?bool $moveElement=true, ?string $labelTagName='div') | |
getTemplateData () | |
@inheritDoc | |
VectorComponentPinnableHeader component.
MediaWiki\Skins\Vector\Components\VectorComponentPinnableHeader::__construct | ( | MessageLocalizer | $localizer, |
bool | $pinned, | ||
string | $id, | ||
string | $featureName, | ||
?bool | $moveElement = true, | ||
?string | $labelTagName = 'div' ) |
MessageLocalizer | $localizer | |
bool | $pinned | |
string | $id | Pinnable element id, by convention this should include the vector- prefix e.g. vector-page-tools or vector-toc . |
string | $featureName | Pinned and unpinned states will persist for logged-in users by leveraging features.js to manage the user preference storage and the toggling of the body class. This name should NOT contain the "vector-" prefix. |
bool | null | $moveElement | |
string | null | $labelTagName | Element type of the label. Either a 'div' or a 'h2' in the case of the pinnable ToC. |
MediaWiki\Skins\Vector\Components\VectorComponentPinnableHeader::getTemplateData | ( | ) |
@inheritDoc
Implements MediaWiki\Skins\Vector\Components\VectorComponent.