mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-09-30 05:37:28 +00:00
0fac9045ac
Split out the sidebar in advance of significant Latest mode only changes. The Less split was made by adding a new Sidebar.less file that imports the Legacy implementation. The Mustache split was made by file copying the existing implementation into a legacy/ subfolder. Both the Legacy and Latest implementations were then stripped of templates not applicable to their modes. These changes are aligned with the splits for JavaScript. Bug: T246419 Change-Id: Ib82769ea16bfc09efe8a088220aab55bdde0d381
21 lines
742 B
Plaintext
21 lines
742 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-portals-first
|
|
MenuDefinition[] array-portals-rest
|
|
emphasized-sidebar-action data-emphasized-sidebar-action For displaying an emphasized action in the sidebar.
|
|
}}
|
|
|
|
<div id="mw-panel">
|
|
{{#data-portals-first}}{{>Menu}}{{/data-portals-first}}
|
|
{{#data-emphasized-sidebar-action}}
|
|
<div class="vector-emphasized-sidebar-action">
|
|
<a class="vector-emphasized-sidebar-action-link" title="{{title}}" href="{{href}}">{{text}}</a>
|
|
</div>
|
|
{{/data-emphasized-sidebar-action}}
|
|
{{#array-portals-rest}}{{>Menu}}{{/array-portals-rest}}
|
|
</div>
|