[go: up one dir, main page]

Page MenuHomePhabricator

Editors should be able to blank the main page title without MediaWiki:Vector.css changes for Vector
Closed, ResolvedPublicBUG REPORT

Description

Many projects hide the heading on the main page on Vector.
They often do this using an !important rule inside MediaWiki:Vector.css
It's proposed we provide an HTML based approach to doing that, by allowing editors to blank the page.

Currently blanking the page, disables a message, and when disabled

Screen Shot 2021-12-03 at 9.34.45 AM.png (890×1 px, 262 KB)

Given the changes in T255682 we could make it adapt this to make it possible to do this without the CSS changes.

The main page title is now controlled by a message mainpage-title.

https://en.wikipedia.beta.wmflabs.org/wiki/Main_Page?uselang=qqx&safemode=1

Proposal

  • Editors can blank the associated message to remove the heading on both Vector and Minerva (needs changes in Vector and Minerva for this to work).
  • The title attribute is not impacted by the change

Event Timeline

Change 743465 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Allow editors to blank the heading, standardize heading class

https://gerrit.wikimedia.org/r/743465

Change 743465 merged by jenkins-bot:

[mediawiki/core@master] Allow editors to blank the heading, standardize heading class

https://gerrit.wikimedia.org/r/743465

This will be usable in Vector and Minerva soon due to the work in T297728 and T265892

I'll verify that change and sign off in wmf14 in the new year.

Change 749580 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Hiding main page heading should not hide title on diff/history views

https://gerrit.wikimedia.org/r/749580

Change 749580 merged by jenkins-bot:

[mediawiki/core@master] Hiding main page heading should not hide title on diff/history views

https://gerrit.wikimedia.org/r/749580

Jdlrobson claimed this task.
Jdlrobson moved this task from Code Review to QA on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
Jdlrobson added a subscriber: Edtadros.

I tried this change out on Italian Wikipedia and it works as expected.

I've communicated this out to communities T298715

Jdlrobson removed Jdlrobson as the assignee of this task.

A bug in the implementation has been flagged: T298715#7603292

All feedback has been addressed. Thursday will see improvements to the feature to use content language, and work on more skins.

  1. Back in 2009, class .firstHeading had been replaced with an ID #firstHeading, see T17427 and https://phabricator.wikimedia.org/rMWc68f345d54c3
  2. Very soon after, the class .firstHeading has been restored, alongside the ID, for backward compatibility, see https://phabricator.wikimedia.org/rMWba0f7c4c1378
  3. In 2014, the ID has been considered obsolete, see https://phabricator.wikimedia.org/rMW7d244175a3bd359bd and also this documentation update.
  4. The present ticket introduced a new class .mw-first-heading for name standardization.

Therefore, am I right assuming that both #firstHeading and .firstHeading should now be considered obsolete?

Currently all skins have #firstHeading, .firstHeading and .mw-first-heading, the only exception being CologneBlue which only has #firstHeading.

@Od1n yes mw-first-heading should now be considered the standard class. Others are obsolete.
Patch for CologneBlue is welcome. I can review.

Change 776234 had a related patch set uploaded (by Gerrit Patch Uploader; author: Fernand Dell):

[mediawiki/skins/CologneBlue@master] Use html-title-heading template data provided by core

https://gerrit.wikimedia.org/r/776234

Change 776234 merged by jenkins-bot:

[mediawiki/skins/CologneBlue@master] Use html-title-heading template data provided by core

https://gerrit.wikimedia.org/r/776234

I have updated the list of IDs and classes in the documentation: edits 5499359, 5499361, and 5499362.

To summarize, I have added .mw-first-heading and made it the recommended selector, and deprecated .firstHeading.
Though, older MediaWiki versions don't have .mw-first-heading yet, so I pointed to .firstHeading as possibly the adequate selector, still.