diff --git a/includes/VectorTemplate.php b/includes/VectorTemplate.php index 0f7d0ca..fe0d9f4 100644 --- a/includes/VectorTemplate.php +++ b/includes/VectorTemplate.php @@ -129,7 +129,7 @@ class VectorTemplate extends BaseTemplate { // Naming conventions for Mustache parameters. // // Value type (first segment): - // - Prefix "is" for boolean values. + // - Prefix "is" or "has" for boolean values. // - Prefix "msg-" for interface message text. // - Prefix "html-" for raw HTML. // - Prefix "data-" for an array of template parameters that should be passed directly @@ -192,6 +192,7 @@ class VectorTemplate extends BaseTemplate { 'data-page-actions-more' => $this->buildActionsProps(), 'data-search-box' => $this->buildSearchProps(), 'data-sidebar' => [ + 'has-logo' => true, 'html-logo-attributes' => Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( 'p-logo' ) + [ 'class' => 'mw-wiki-logo', diff --git a/includes/templates/Sidebar.mustache b/includes/templates/Sidebar.mustache index badb444..43f4d79 100644 --- a/includes/templates/Sidebar.mustache +++ b/includes/templates/Sidebar.mustache @@ -6,12 +6,15 @@ string html-logo-attributes for site logo. Must be used inside tag e.g. `class="logo" lang="en-gb"` array array-portals contains options for Portal template emphasized-sidebar-action data-emphasized-sidebar-action For displaying an emphasized action in the sidebar. + @prop boolean has-logo whether to show a logo or not. }}