mediawiki-skins-Vector/includes/templates/PageTitlebar.mustache
Jan Drewniak 8a3e24e346 Simplify TOC design for pinned TOC on no js small viewports
Bug: T340571
Change-Id: Ie34d7d478b3a73cade9f5328439515e419692eb7
2023-10-16 23:31:18 -04:00

33 lines
1.3 KiB
Plaintext

{{!-
Page titlebar - Main h1 title for all pages, with either the indicators or language selector.
When language button is visible, indicators are placed in the BeforeContent.mustache template instead.
}}
<header class="mw-body-header vector-page-titlebar{{#is-title-blank}} vector-page-titlebar-blank{{/is-title-blank}}">
{{#data-toc}}
{{! TOC is moved into this dropdown from the sidebar in stickyHeader.js. }}
<nav role="navigation" aria-label="{{ msg-vector-toc-label }}" class="vector-toc-landmark">
{{#data-page-titlebar-toc-dropdown}}{{>Dropdown/Open}}{{/data-page-titlebar-toc-dropdown}}
{{#data-page-titlebar-toc-pinnable-container}}
{{>PinnableContainer/Unpinned/Open}}
{{^is-pinned}}
{{#data-toc}}{{>TableOfContents}}{{/data-toc}}
{{/is-pinned}}
{{>PinnableContainer/Close}}
{{/data-page-titlebar-toc-pinnable-container}}
{{#data-page-titlebar-toc-dropdown}}{{>Dropdown/Close}}{{/data-page-titlebar-toc-dropdown}}
</nav>
{{/data-toc}}
{{{html-title-heading}}}
{{#has-buttons-in-content-top}}
{{#data-lang-dropdown}}
{{>LanguageDropdown}}
{{/data-lang-dropdown}}
{{#data-add-topic-button}}
{{>Button}}
{{/data-add-topic-button}}
{{/has-buttons-in-content-top}}
{{^has-buttons-in-content-top}}
{{>Indicators}}
{{/has-buttons-in-content-top}}
</header>