Page MenuHomePhabricator

Apply span tags with CSS classes/ids to the different elements of #firstHeading
Open, LowPublicFeature

Description

Author: svippy

Description:
A not entirely unlikely situation would be the need to apply a certain style to one's titles on pages, but also the concept of removing the namespace from the title, if it is already suggested by a different background colour or the users consider the layout to be decent enough.

Simply add some span tags with CSS classes. Here is a current category firstHeading:

<h1 style="" id="firstHeading" class="firstHeading">Category:Meta</h1>

Which would be preferably if it looked like this:

<h1 style="" id="firstHeading" class="firstHeading"><span class="firstHeading-namespace">Category</span><span class="firstHeading-separator">:</span><span class="firstHeading-pagetitle">Meta</span></h1>

So a simply case of CSS could happily get rid of 'Category:':

.ns-14 .firstHeading-namespace,
.ns-14 .firstHeading-separator {

display: none;

}


Version: unspecified
Severity: enhancement

Details

Reference
bz22941

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:01 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz22941.
bzimport added a subscriber: Unknown Object (MLST).
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM