mediawiki-skins-Vector/includes/templates/Portal.mustache
Jan Drewniak 361e0d6f71 Extract Portal mustache component from VectorTemplate.php
A Portal (or portlet) in the Vector context is a section of the
sidebar menu (e.g. Tools, Languges etc.).

The hook that places content between the portals (or portlets?)
such as `SkinTemplateToolboxEnd` and `otherlanguages` has been
enclosed inside of an output buffer so that any content it
produces can be passed to a template.

Bug: T239248, T240062
Change-Id: I882db161e5462cf88aa48c9cfd91448eb97a4a77
2020-01-14 22:44:58 +01:00

20 lines
465 B
Plaintext

{{!
string portal-id
string html-tooltip
string msg-label-id
string|null html-userlangattributes
string msg-label}
string html-portal-content
string|null html-after-portal
}}
<div class="portal" role="navigation" id="{{portal-id}}" {{{html-tooltip}}} aria-labelledby="{{msg-label-id}}">
<h3 {{{html-userlangattributes}}} id="{{msg-label-id}}">
{{msg-label}}
</h3>
<div class="body">
{{{html-portal-content}}}
{{{html-after-portal}}}
</div>
</div>