* Increased selector specificy so that .emptyPortlet works on portlets within
#mw-page-header-links
* Moved the `ca-more` dropdown, only shown on mobile, into a new portlet so that
`p-views` is really empty on Special pages, and has class .emptyPortlet
* Moved languages dropdown, also only shown on mobile, into the new portlet too.
This way on special pages the two dropdowns are in a single <ul> list with two
items, rather than two adjacent list each with one item. Also, grouping the
mobile-only items together means the desktop CSS only has to hide the portlet,
rather than the individual ietms.
Bug: T182533
Change-Id: I496af1805d200e1fd67b1232e1b3b029b08b82ca
Rename `pagetools` to `views`, `pageactions` to `cactions`, and
`cactions` from last commit back to `pagemisc`.
Make empty portlets available on page but hidden (display:none)
with css class emptyPortlet, which can be removed by scripts
that add links to portlets (mw.util.addPortletLink already does
this).
Bug: T181362
Change-Id: I56d5b9df529abbdfead26cc46b8fe28935b417c3
Reusing existing portlet ids instead of Timeless-specific ids means
that user scripts and gadgets that work on other skins should also
work with Timeless.
Bug: T181362
Change-Id: I5fa7effc503e08438d2cc23f0142771116301da8
Timeless requires MW 1.29 or newer anyway, so this is perfectly fine,
given that DB_SLAVE is deprecated in modern versions of MW in favor of the
new DB_REPLICA constant (which was even backported to MW 1.27 branch).
Change-Id: I96635a042a7b149cc024f44f3383421a7c7fb721
Per 53ab861a2fcba98d876e5a2be5af7bc7186b880c, extensions can set this
to an empty array to have the sidebar section displayed even if it has
no items. Wikidata and UniversalLanguageSelector rely on this.
Change-Id: I7037b4fac973bdcc1e21484c8039ceb7e33f8195
renderAfterPortlet just dumps it on the page. This is bad for timeless.
getAfterPortlet gets. This is good for timeless.
Change-Id: I1e0a3674644edb4c279814a4a372207bfdcbff4b
getPortlet is now the version previously intended for
BaseTemplate.
Toolbox is betterer.
I don't know.
Change-Id: Ibb94caecaa703ed2895e93c3a15aa097a5b610d5
Structure is generally the same. All html is rendered into a
single variable, output with a single unholy 'echo'.
getPortlet is now more general, and generally used.
Should generally address the issues raised in T158011.
Should also be technically compatible with VE (DOM), but
without styling, and requiring the user to edit
LocalSettings.php (hopefully that gets fixed soon).
Fixed a slight bug with the languages rendering on mobile.
Some randomly missing things were added back in. (Variants,
some hooks)
bug: T161428
bug: T158011
bug: T132005
Change-Id: I3b691c8bfe7aed4a544236d5ac031b77ec4e8337
Code copypasted from core /includes/skins/BaseTemplate.php, function
makeLink(). Totally, completely and absolutely untested, but it makes
sense, so it should work....right?
Change-Id: I56bc9b62c510bad2d22de149705bb96ffe7aca67
And some other stuff too just because I ran into it on the way:
* Added indicators
* Fixed js in general
* Bumped version number
* Added some stupid hacks
* Cleaned stuff up
* I don't actually know
Change-Id: Ifa557c6f0f8a972d8986c3bffdfe08ddb4b39664
Just makes the font smaller if over a certain length. Not actually
smart. Will later add an option to replace it entirely with an image.
Change-Id: I7157c80132330c525ac2cb2027307550cee282b4
Lowered font size, better menus (maybe), white header bar thingy with
colour
Probably other things.
Change-Id: Ia1b4c3ce0fed3752a9bae529573aa45912cb01ad
Thanks to Skizzers for the catlist db query.
Thanks to HORROR for the tool parsing.
Lots of css and stuff.
Change-Id: I9b6b4c2e3a206d909972929ae32777c933d0be46