mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 23:55:53 +00:00
9dcfc1ff27
- Add i18n messages. - Update relevant data methods in Vector. - Update sidebar template + styles. - Add new template partial for sidebar actions. - Add feature flag to turn on/off alert. Bug: T295555 Change-Id: I232ce13770917d51495391f4b8d8d1a3a8a7afb8
22 lines
939 B
Plaintext
22 lines
939 B
Plaintext
{{!
|
|
@typedef object emphasized-sidebar-action
|
|
@prop string href
|
|
@prop string text
|
|
|
|
string html-logo-attributes for site logo. Must be used inside tag e.g. `class="logo" lang="en-gb"`
|
|
MenuDefinition data-portlets-first
|
|
MenuDefinition[] array-portlets-rest
|
|
emphasized-sidebar-action data-emphasized-sidebar-action For displaying an emphasized action in the sidebar.
|
|
}}
|
|
|
|
<div id="mw-panel" class="mw-sidebar">
|
|
{{#data-portlets-first}}{{>Menu}}{{/data-portlets-first}}
|
|
{{#data-emphasized-sidebar-action}}{{>SidebarAction}}{{/data-emphasized-sidebar-action}}
|
|
{{#array-portlets-rest}}{{>Menu}}{{/array-portlets-rest}}
|
|
{{^is-language-in-content}}
|
|
{{#data-portlets.data-languages}}{{>Menu}}{{/data-portlets.data-languages}}
|
|
{{/is-language-in-content}}
|
|
{{! T295555 Add language switch alert message temporarily (to be removed). }}
|
|
{{#data-vector-language-switch-alert}}{{>SidebarAction}}{{/data-vector-language-switch-alert}}
|
|
</div>
|