mediawiki-skins-Vector/includes/templates/MainMenu.mustache
Jon Robson 769818514d [Refactor] Rename Portal component to MainMenuGroup
The Portal component is only ever used inside the MainMenu component

Change-Id: I3a3c58b11416f28c58f02a8bdfdacfbb7df6de9b
2022-12-01 14:45:52 -08:00

20 lines
695 B
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-main-menu-container {{^data-toc}}vector-sidebar-container-no-toc{{/data-toc}}">
<div id="mw-navigation">
<nav id="mw-panel" class="vector-main-menu" aria-label="{{msg-vector-site-nav-label}}" role="navigation">
{{#data-portlets-main-menu}}
{{>MainMenuContents}}
{{/data-portlets-main-menu}}
</nav>
</div>
</div>