mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-01 18:57:04 +00:00
cdd5ebd74d
CHANGES to index.mustache: Changes can be understood by looking at the diff of the file stories/skin.stories.js The additional changes in stories folder export the data passed to those templates. A new file is used as exporting any variable in a file suffixed stories.js will be assumed to be a story entry. The changes to index.mustache are as follows: * html-footer is replaced with data-footer and Footer component is rendered via template partial * html-navigation is replaced with data-navigation and Navigation component is rendered via template partial CHANGES to Navigation.mustache: Changes are best explained by looking at the diff to stories/navigation.stories.js and navigation.stories.data.js * html-personal-menu is replaced with data-personal-menu Bug: T245456 Change-Id: Ie96e92447a932b8a7f3844df277a1d31a2af423c
67 lines
2.7 KiB
Plaintext
67 lines
2.7 KiB
Plaintext
{{!
|
|
string html-headelement a string of attribute HTML that begins with `<html> and ends with '</head>'
|
|
and contains `meta` tags and ResourceLoader internals.
|
|
string|null html-sitenotice the contents of a banner defined in MediaWiki:Sitenotice.
|
|
Also used by CentralNotice to inject banners into Vector.
|
|
string html-indicators raw HTML containing wiki-defined badges such as "good article", "featured article".
|
|
An empty string if none are defined.
|
|
string page-langcode the content language of the article. Assumed to be escaped HTML./
|
|
string html-title
|
|
string html-prebodyhtml
|
|
bool page-isarticle
|
|
string msg-tagline
|
|
string html-subtitle
|
|
string html-undelete
|
|
string html-newtalk
|
|
string msg-jumptonavigation
|
|
string msg-jumptosearch
|
|
string html-bodycontent
|
|
string html-printfooter
|
|
string html-catlinks
|
|
string html-debuglog
|
|
string html-dataAfterContent
|
|
object data-navigation for navigation template partial. see Navigation.mustache for documentation.
|
|
object data-footer for footer template partial. see Footer.mustache for documentation.
|
|
string html-printtail HTML to render at the end of the page contained necessary script tags for ResourceLoader
|
|
terminated with `</body></html>`.
|
|
}}
|
|
|
|
{{{html-headelement}}}
|
|
<div id="mw-page-base" class="noprint"></div>
|
|
<div id="mw-head-base" class="noprint"></div>
|
|
<div id="content" class="mw-body" role="main">
|
|
<a id="top"></a>
|
|
{{#html-sitenotice}}<div id="siteNotice" class="mw-body-content">{{{html-sitenotice}}}</div>{{/html-sitenotice}}
|
|
{{{html-indicators}}}
|
|
<h1 id="firstHeading" class="firstHeading" lang="{{page-langcode}}">{{{html-title}}}</h1>
|
|
{{{html-prebodyhtml}}}
|
|
<div id="bodyContent" class="mw-body-content">
|
|
{{#page-isarticle}}<div id="siteSub" class="noprint">{{msg-tagline}}</div>{{/page-isarticle}}
|
|
<div id="contentSub"{{{html-userlangattributes}}}>{{{html-subtitle}}}</div>
|
|
{{#html-undelete}}<div id="contentSub2">{{{html-undelete}}}</div>{{/html-undelete}}
|
|
{{#html-newtalk}}<div class="usermessage">{{{html-newtalk}}}</div>{{/html-newtalk}}
|
|
{{!
|
|
Keep this empty `div` for compatibility with gadgets and user scripts
|
|
using this place to insert extra elements before.
|
|
}}
|
|
<div id="jump-to-nav"></div>
|
|
<a class="mw-jump-link" href="#mw-head">{{msg-jumptonavigation}}</a>
|
|
<a class="mw-jump-link" href="#p-search">{{msg-jumptosearch}}</a>
|
|
{{{html-bodycontent}}}
|
|
{{#html-printfooter}}
|
|
<div class="printfooter">{{{html-printfooter}}}</div>
|
|
{{/html-printfooter}}
|
|
{{{html-catlinks}}}
|
|
<div class="visualClear"></div>
|
|
{{{html-debuglog}}}
|
|
</div>
|
|
</div>
|
|
{{{html-dataAfterContent}}}
|
|
{{#data-navigation}}
|
|
{{>Navigation}}
|
|
{{/data-navigation}}
|
|
{{#data-footer}}
|
|
{{>Footer}}
|
|
{{/data-footer}}
|
|
{{{html-printtail}}}
|