2020-02-17 19:49:43 +00:00
|
|
|
{{!
|
2020-07-09 16:32:45 +00:00
|
|
|
string|null html-site-notice the contents of a banner defined in MediaWiki:Sitenotice.
|
2020-04-08 21:40:56 +00:00
|
|
|
Also used by CentralNotice to inject banners into Vector.
|
2020-07-09 16:32:45 +00:00
|
|
|
Indicator[] array-indicators wiki-defined badges such as "good article",
|
2020-06-03 19:41:59 +00:00
|
|
|
"featured article". An empty array if none are defined.
|
2020-04-08 21:40:56 +00:00
|
|
|
string html-title
|
2021-05-01 09:09:02 +00:00
|
|
|
bool is-article
|
2020-04-08 21:40:56 +00:00
|
|
|
string msg-tagline
|
|
|
|
string html-subtitle
|
2020-07-09 16:32:45 +00:00
|
|
|
string html-undelete-link
|
2020-04-08 21:40:56 +00:00
|
|
|
string html-newtalk
|
2020-06-01 19:28:51 +00:00
|
|
|
string msg-vector-jumptonavigation
|
|
|
|
string msg-vector-jumptosearch
|
2020-09-08 23:20:58 +00:00
|
|
|
string msg-vector-jumptocontent
|
2020-07-09 16:32:45 +00:00
|
|
|
string html-body-content
|
|
|
|
string html-categories
|
|
|
|
string html-after-content
|
[modern] A new version of Vector with a new logo
Changes to support feature:
* ResourceLoaderSkinModule logo features are dropped
* New layout provided given the fork in layout between legacy and new.
* Legacy sidebar styles now pulled out
* breakpoint styles are not carried over from legacy Vector
The new Vector layout for now has one breakpoint.
Changes to storybook:
* The storybook script now pulls down image assets so that the logos can
be shown in storybook. The script is adjusted to make use of a static folder to
serve these images.
Note:
* The legacy mode is not touched as part of this patchset.
* The personal menu is unaffected by this patch and is out of scope.
* The alignment issue is noted, but will be solved at a later date.
* Changes to portal are out of scope.
* Adding storybook for modern descoped, given its not possible to load
both legacy layout and modern layout inside a storybook at current time.
Sample config:
$wgLogos = [
'icon' => 'https://di-logo-sandbox.firebaseapp.com/img/globe.png',
'tagline' => [
'src' => 'https://di-logo-sandbox.firebaseapp.com/img/tagline/en-tagline-117-13.svg',
'width' => 117,
'height' => 13,
],
'1x' => 'https://en.wikipedia.org/static/images/project-logos/enwiki.png',
'wordmark' => [
'src' => 'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg',
'width' => 116,
'height' => 18,
],
];
Coauthor: Aron Manning
Bug: T246170
Change-Id: Ibc4b055150761388a6b78f9127da342c451ce0e7
2020-03-09 05:51:00 +00:00
|
|
|
LogoOptions data-logos
|
2020-09-04 19:18:57 +00:00
|
|
|
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
|
2020-04-08 21:40:56 +00:00
|
|
|
object data-search-box. See SearchBox.mustache for documentation.
|
2020-06-23 02:43:28 +00:00
|
|
|
string msg-vector-action-toggle-sidebar The label used by the sidebar button.
|
2021-08-25 15:24:58 +00:00
|
|
|
string msg-vector-main-menu-tooltip The title attribute for the main menu icon.
|
2022-12-14 20:57:25 +00:00
|
|
|
object data-main-menu. See MainMenu.mustache for documentation.
|
2020-04-08 21:40:56 +00:00
|
|
|
object data-footer for footer template partial. see Footer.mustache for documentation.
|
2020-02-17 19:49:43 +00:00
|
|
|
}}
|
2023-03-28 17:45:48 +00:00
|
|
|
<a class="mw-jump-link" href="#bodyContent">{{msg-vector-jumptocontent}}</a>
|
|
|
|
<div class="vector-header-container">
|
|
|
|
{{>Header}}
|
|
|
|
</div>
|
2022-08-04 20:05:36 +00:00
|
|
|
<div class="mw-page-container">
|
2022-08-03 20:27:39 +00:00
|
|
|
<div class="mw-page-container-inner">
|
2022-11-30 22:22:33 +00:00
|
|
|
{{>MainMenuPinned}}
|
2022-08-22 20:23:14 +00:00
|
|
|
<div class="vector-sitenotice-container">
|
|
|
|
<div id="siteNotice">{{{html-site-notice}}}</div>
|
|
|
|
</div>
|
2023-02-28 00:09:27 +00:00
|
|
|
{{#data-toc}}
|
|
|
|
<input type="checkbox" id="vector-toc-collapsed-checkbox" class="mw-checkbox-hack-checkbox">
|
|
|
|
<nav id="mw-panel-toc" role="navigation" aria-label="{{ msg-vector-toc-label }}" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark">
|
|
|
|
{{! T313060 Additional container div needed to prevent the sticky element from being siblings with the footer }}
|
|
|
|
{{#data-toc-pinnable-container}}
|
|
|
|
{{>PinnableContainer/Pinned/Open}}
|
|
|
|
{{#is-pinned}}
|
|
|
|
{{#data-toc}}{{>TableOfContents}}{{/data-toc}}
|
|
|
|
{{/is-pinned}}
|
|
|
|
{{>PinnableContainer/Close}}
|
|
|
|
{{/data-toc-pinnable-container}}
|
|
|
|
</nav>
|
|
|
|
{{/data-toc}}
|
2022-08-03 20:27:39 +00:00
|
|
|
<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">
|
2022-10-17 20:09:53 +00:00
|
|
|
{{>PageTitlebar}}
|
|
|
|
{{>PageToolbar}}
|
2023-03-27 20:29:34 +00:00
|
|
|
{{>ColumnEnd}}
|
2022-09-26 14:04:41 +00:00
|
|
|
<div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container>
|
2022-10-17 20:09:53 +00:00
|
|
|
{{>BeforeContent}}
|
2022-09-23 16:57:02 +00:00
|
|
|
{{! the #contentSub element is currently used by editors, do not hide or remove it
|
2023-01-12 11:19:26 +00:00
|
|
|
until https://phabricator.wikimedia.org/T316830 has been addressed}}
|
2022-09-23 16:57:02 +00:00
|
|
|
<div id="contentSub"{{{html-user-language-attributes}}}>{{{html-subtitle}}}</div>
|
2022-08-03 20:27:39 +00:00
|
|
|
{{#html-undelete-link}}<div id="contentSub2">{{{.}}}</div>{{/html-undelete-link}}
|
|
|
|
{{{html-user-message}}}
|
|
|
|
{{{html-body-content}}}
|
|
|
|
{{{html-categories}}}
|
2023-03-27 20:29:34 +00:00
|
|
|
{{#is-language-in-content-bottom}}
|
2022-12-16 18:03:07 +00:00
|
|
|
{{#data-lang-btn}}{{>LanguageDropdown}}{{/data-lang-btn}}
|
2023-03-27 20:29:34 +00:00
|
|
|
{{/is-language-in-content-bottom}}
|
2022-08-03 20:27:39 +00:00
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
{{{html-after-content}}}
|
|
|
|
</div>
|
2022-08-04 20:05:36 +00:00
|
|
|
<div class="mw-footer-container">
|
2022-08-03 20:27:39 +00:00
|
|
|
{{#data-footer}}{{>Footer}}{{/data-footer}}
|
|
|
|
</div>
|
Implement Page, Workspace, Content, and Article Toolbar Containers
This patch closely follows the desired guidelines/desired
styles Alex Hollender has put forth in his prototype, but uses
multiple containers to achieve this look since our DOM order/structure
is different than the DOM structure in the prototype. The following
containers are used, but unlike his prototype, they are sometimes used
more than once:
* Page Container: Contains every other container and limits the overall
max-width of the white part of the page.
* Workspace Container: Contains the sidebar and content container. The
sidebar is displaced ~30 pixels to the start (left) of the workspace
container at all times.
* Content Container: Contains the content. The max-width of this changes
depending on whether you are on a special page/history page vs. other
pages.
* Article Toolbar Container: Contains the article toolbar. The max-width
of this is always the same as the max-width of the article content as we
don't want the toolbar to move when going from the article page to the
history/special page.
Changes to be aware:
* To test locally, `$wgVectorLayoutMaxWidth = true;`. This design is
temporarily feature flagged and defaults to being "off".
* Note that layout-max-width.less is a temporary file made to meet the
feature flag requirement of T246420 (intended to derisk the deployment).
After the deploy, we should merge most if not all of the rules into
layout.less where the max-width design will become the default.
* Per Jon's code review comment, I have relaxed the indenting of
skin.mustache to make the diff easier to reason about. If desired, the
correct indenting can be achieved in a (much less risky) follow-up
commit.
Bug: T246420
Bug: T153043
Change-Id: Ie49f629bc705850c6996164a516957476c034048
2020-06-23 18:02:32 +00:00
|
|
|
</div> {{! END mw-page-container-inner }}
|
|
|
|
</div> {{! END mw-page-container }}
|
2023-03-28 17:45:48 +00:00
|
|
|
{{#data-vector-sticky-header}}
|
|
|
|
<div class="vector-header-container vector-sticky-header-container">
|
|
|
|
{{>StickyHeader}}
|
|
|
|
</div>
|
|
|
|
{{/data-vector-sticky-header}}
|