mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-12 09:21:11 +00:00
44aeee5d83
The H1 is available with the correct attributes in core now, so we can use that instead of our own markup. This also means Vector will benefit from updates to the heading in core such as main page special handling. Bug: T297728 Change-Id: I4d10370678fad6455d73994bf340891760543b71
105 lines
3.7 KiB
Plaintext
105 lines
3.7 KiB
Plaintext
{{!
|
|
string|null html-site-notice the contents of a banner defined in MediaWiki:Sitenotice.
|
|
Also used by CentralNotice to inject banners into Vector.
|
|
Indicator[] array-indicators wiki-defined badges such as "good article",
|
|
"featured article". An empty array if none are defined.
|
|
string html-title
|
|
bool is-article
|
|
string msg-tagline
|
|
string html-subtitle
|
|
string html-undelete-link
|
|
string html-newtalk
|
|
string msg-vector-jumptonavigation
|
|
string msg-vector-jumptosearch
|
|
string msg-vector-jumptocontent
|
|
string html-body-content
|
|
string html-categories
|
|
string html-after-content
|
|
LogoOptions data-logos
|
|
object data-portlets
|
|
MenuDefinition data-portlets.data-personal
|
|
MenuDefinition data-portlets.data-namespaces
|
|
MenuDefinition data-portlets.data-variants
|
|
MenuDefinition data-portlets.data-views
|
|
MenuDefinition data-portlets.data-actions
|
|
object data-search-box. See SearchBox.mustache for documentation.
|
|
boolean sidebar-visible For users that want to see the sidebar on initial render, this should be
|
|
true.
|
|
string msg-vector-action-toggle-sidebar The label used by the sidebar button.
|
|
string msg-vector-main-menu-tooltip The title attribute for the main menu icon.
|
|
string msg-vector-menu-checkbox-expanded Dropdown menu span content for expanded selection in checkbox hack.
|
|
string msg-vector-menu-checkbox-collapsed Dropdown menu span content for collapsed selection in checkbox hack.
|
|
object data-portlets-sidebar. See Sidebar.mustache for documentation.
|
|
object data-footer for footer template partial. see Footer.mustache for documentation.
|
|
}}
|
|
<div class="mw-page-container">
|
|
<a class="mw-jump-link" href="#content">{{msg-vector-jumptocontent}}</a>
|
|
<div class="mw-page-container-inner">
|
|
|
|
<input
|
|
type="checkbox"
|
|
id="mw-sidebar-checkbox"
|
|
class="mw-checkbox-hack-checkbox"
|
|
{{#sidebar-visible}}checked{{/sidebar-visible}}>
|
|
|
|
{{>Header}}
|
|
|
|
{{#is-vector-table-of-contents-visible}}{{>TableOfContents}}{{/is-vector-table-of-contents-visible}}
|
|
|
|
<div class="mw-workspace-container">
|
|
{{>Navigation}}
|
|
<div class="mw-content-container">
|
|
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles. }}
|
|
<main id="content" class="mw-body" role="main">
|
|
<a id="top"></a>
|
|
<div id="siteNotice">{{{html-site-notice}}}</div>
|
|
|
|
{{^is-language-in-content}}
|
|
{{>Indicators}}
|
|
{{{html-title-heading}}}
|
|
{{/is-language-in-content}}
|
|
|
|
{{#is-language-in-content}}
|
|
<header class="mw-body-header">
|
|
{{#is-language-in-content-top}}
|
|
{{#data-portlets.data-languages}}{{>Menu}}{{/data-portlets.data-languages}}
|
|
{{/is-language-in-content-top}}
|
|
{{{html-title-heading}}}
|
|
{{>Indicators}}
|
|
{{#is-article}}
|
|
<div id="siteSub" class="noprint">{{msg-tagline}}</div>
|
|
{{/is-article}}
|
|
</header>
|
|
{{/is-language-in-content}}
|
|
|
|
<div id="bodyContent" class="vector-body">
|
|
{{^is-language-in-content}}
|
|
{{#is-article}}<div id="siteSub" class="noprint">{{msg-tagline}}</div>{{/is-article}}
|
|
{{/is-language-in-content}}
|
|
<div id="contentSub"{{{html-user-language-attributes}}}>{{{html-subtitle}}}</div>
|
|
<div id="contentSub2">{{{html-undelete-link}}}</div>
|
|
{{{html-user-message}}}
|
|
{{{html-body-content}}}
|
|
{{{html-categories}}}
|
|
</div>
|
|
|
|
{{#is-language-in-content-bottom}}
|
|
{{#data-portlets.data-languages}}{{>Menu}}{{/data-portlets.data-languages}}
|
|
{{/is-language-in-content-bottom}}
|
|
|
|
</main>
|
|
{{{html-after-content}}}
|
|
</div> {{! END mw-content-container }}
|
|
</div> {{! END mw-workspace-container }}
|
|
|
|
<div class="mw-workspace-container mw-footer-container">
|
|
<div class="mw-content-container">
|
|
{{#data-footer}}{{>Footer}}{{/data-footer}}
|
|
</div>
|
|
</div>
|
|
</div> {{! END mw-page-container-inner }}
|
|
</div> {{! END mw-page-container }}
|
|
{{#data-vector-sticky-header}}
|
|
{{>StickyHeader}}
|
|
{{/data-vector-sticky-header}}
|