mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 09:30:17 +00:00
51457a78e7
Rename template and CSS files to match updated naming conventions, replaces instances of "sidebar" with "main menu" Bug: T316570 Bug: T317437 Change-Id: Ib4050768f20b1734d356104f18aa539f657099d8
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
{{!
|
|
@typedef object main-menu-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
|
|
main-menu-action data-main-menu-action For displaying an emphasized action in the main menu.
|
|
}}
|
|
<div class="vector-sidebar-container vector-main-menu-container {{^data-toc}}vector-sidebar-container-no-toc{{/data-toc}}">
|
|
<div id="mw-navigation">
|
|
{{#data-portlets-main-menu}}
|
|
<nav id="mw-panel" class="mw-sidebar vector-main-menu" aria-label="{{msg-vector-site-nav-label}}" role="navigation">
|
|
{{#data-portlets-first}}{{>Menu}}{{/data-portlets-first}}
|
|
{{#data-main-menu-action}}{{>MainMenuAction}}{{/data-main-menu-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}}{{>MainMenuAction}}{{/data-vector-language-switch-alert}}
|
|
</nav>
|
|
{{/data-portlets-main-menu}}
|
|
</div>
|
|
</div>
|
|
|