mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-18 05:01:25 +00:00
03d61e12c9
For language-in-header feature, edits the <header> element to contain: - page title, - language selector - tagline (siteSub) - Indicators These elements are associated with header/meta content so grouping them inside one header element makes sense semantically. Bug: T248761 Change-Id: Ief6c4936d1ebe381432369f8d86419da5f7c6cae
96 lines
3.3 KiB
Plaintext
96 lines
3.3 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 page-isarticle
|
|
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
|
|
string msg-navigation-heading
|
|
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.
|
|
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}}
|
|
|
|
<div class="mw-workspace-container">
|
|
{{#data-portlets-sidebar}}{{>Sidebar}}{{/data-portlets-sidebar}}
|
|
{{>Navigation}}
|
|
<div class="mw-content-container">
|
|
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles. }}
|
|
<!-- Please do not use role attribute as CSS selector, it is deprecated. -->
|
|
<main id="content" class="mw-body" role="main">
|
|
<a id="top"></a>
|
|
<div id="siteNotice" class="mw-body-content">{{{html-site-notice}}}</div>
|
|
|
|
{{^is-language-in-header}}
|
|
{{>Indicators}}
|
|
<h1 id="firstHeading" class="firstHeading" {{{html-user-language-attributes}}}>{{{html-title}}}</h1>
|
|
{{/is-language-in-header}}
|
|
|
|
{{#is-language-in-header}}
|
|
<header class="mw-body-header">
|
|
{{#data-portlets.data-languages}}{{>Menu}}{{/data-portlets.data-languages}}
|
|
{{>Indicators}}
|
|
<h1 id="firstHeading" class="firstHeading" {{{html-user-language-attributes}}}>
|
|
{{{html-title}}}
|
|
</h1>
|
|
|
|
{{#page-isarticle}}
|
|
<div id="siteSub" class="noprint">{{msg-tagline}}</div>
|
|
{{/page-isarticle}}
|
|
</header>
|
|
{{/is-language-in-header}}
|
|
|
|
<div id="bodyContent" class="mw-body-content">
|
|
{{^is-language-in-header}}
|
|
{{#page-isarticle}}<div id="siteSub" class="noprint">{{msg-tagline}}</div>{{/page-isarticle}}
|
|
{{/is-language-in-header}}
|
|
<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>
|
|
</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 }}
|