Page MenuHomePhabricator

Add class attributes to HTML elements of "subtitle"
Closed, ResolvedPublic

Description

Setup

  • MediaWiki 1.31.1 (1f664ea) 00:05, 21 September 2018
  • PHP 7.0.30-0+deb9u1 (apache2handler)
  • MariaDB 10.1.26-MariaDB-0+deb9u1
  • DisplayTitle 2.0.0 (8a726b3) 18:09, 6 December 2017

Issue
There are a minimum of two extensions working with "subtitle" and adding text to the subtitle section of a page. DisplayTitle does so without adding class attributes to the retrospective HTML elements thus not allowing for fine grained manipulation via CSS.

There is the $wgDisplayTitleHideSubtitle configuration parameter allowing to hide the subtitle added by this very extensions but there may be cases there this may not be what one would like to do with these subtitles. However doing so would also affect subtitles added by other extensions.

Event Timeline

cicalese triaged this task as Medium priority.Apr 12 2020, 10:25 PM
cicalese moved this task from Backlog to Feature Request on the User-Cicalese board.

Change 938450 had a related patch set uploaded (by Cicalese; author: Cicalese):

[mediawiki/extensions/DisplayTitle@master] Add class to subtitle

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

Change 938450 merged by jenkins-bot:

[mediawiki/extensions/DisplayTitle@master] Add class to subtitle

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

cicalese claimed this task.
cicalese moved this task from Needs Review For Me to Closed on the User-Cicalese board.

Change 940438 had a related patch set uploaded (by Cicalese; author: Cicalese):

[mediawiki/extensions/DisplayTitle@REL1_39] Add class to subtitle

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

Change 940439 had a related patch set uploaded (by Cicalese; author: Cicalese):

[mediawiki/extensions/DisplayTitle@REL1_40] Add class to subtitle

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

Change 940438 merged by jenkins-bot:

[mediawiki/extensions/DisplayTitle@REL1_39] Add class to subtitle

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

Change 940439 merged by jenkins-bot:

[mediawiki/extensions/DisplayTitle@REL1_40] Add class to subtitle

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