mediawiki-skins-Citizen/includes/templates/skin.mustache
alistair3149 72b41df5ce
Refactor header DOM structure
- Reduced unnessecary HTML elements
- Stanardized class and IDs
- Switch to fix header due to performance concern
- Rewrote over-qualified CSS selectors
- Started rework on file organizations
2020-06-07 01:30:54 -04:00

69 lines
2.8 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 html-printtail HTML to render at the end of the page contained necessary script tags for
ResourceLoader terminated with `</body></html>`.
string|null html-sitenotice the contents of a banner defined in MediaWiki:Sitenotice.
Also used by CentralNotice to inject banners.
string page-langcode the content language of the article. Assumed to be escaped HTML.
string html-newtalk
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 msg-tagline
string html-prebodyhtml
string html-subtitle
string html-undelete
string html-bodycontent
string html-printfooter
string html-catlinks
string html-debuglog
string html-dataAfterContent
object data-footer for footer template partial. see Footer.mustache for documentation.
string html-mainpage-attributes
string msg-sitetitle
object data-bottombar for bottom template partial. see Bottombar.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}}}
{{#data-header}}{{>Header}}{{/data-header}}
<main class="mw-body">
{{#html-sitenotice}}
<div id="siteNotice" class="mw-body-content">{{{.}}}</div>
{{/html-sitenotice}}
{{#html-newtalk}}<div class="usermessage">{{{html-newtalk}}}</div>{{/html-newtalk}}
{{{html-indicators}}}
{{#data-pagetools}}
<div class="mw-side" id="page-tools">
{{#data-page-actions}}{{>Menu}}{{/data-page-actions}}
{{#data-page-actions-more}}{{>Menu}}{{/data-page-actions-more}}
</div>
{{/data-pagetools}}
<h1 id="firstHeading" class="firstHeading" lang="{{page-langcode}}">{{{html-title}}}</h1>
<div id="siteSub">{{msg-tagline}}</div>
{{{html-prebodyhtml}}}
<div id="bodyContent" class="mw-body-content">
<div id="contentSub"{{{html-userlangattributes}}}>{{{html-subtitle}}}</div>
{{#html-undelete}}<div id="contentSub2">{{{html-undelete}}}</div>{{/html-undelete}}
{{{html-bodycontent}}}
{{#html-printfooter}}
<div class="printfooter">{{{html-printfooter}}}</div>
{{/html-printfooter}}
{{#data-pagelinks}}
{{#data-namespaces}}{{>Menu}}{{/data-namespaces}}
{{#data-variants}}{{>Menu}}{{/data-variants}}
{{/data-pagelinks}}
{{{html-catlinks}}}
{{{html-dataAfterContent}}}
{{{html-debuglog}}}
</div>
</main>
{{#data-footer}}{{>Footer}}{{/data-footer}}
<aside class="mw-sidebar-sitename">
<a class="mw-wiki-title" {{{html-mainpage-attributes}}}>{{{msg-sitetitle}}}</a>
</aside>
{{#data-bottombar}}{{>Bottombar}}{{/data-bottombar}}
{{{html-printtail}}}