Page MenuHomePhabricator

A CSS class for 'blue' links.
Closed, DeclinedPublic

Description

I would like a CSS class for blue wikified links comparable to the "new" class
for red links. This would facilitate hiding already created entries from wanted
lists and requests lists, as well as long pages of "to be entered" material.


Version: unspecified
Severity: enhancement

Details

Reference
bz7284

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:26 PM
bzimport set Reference to bz7284.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

Proposed patch

Patch adds class "existing" to blue links. Seems to work as expected on my
install.

Attached:

Brion mentioned that there may have, at one point, been a class on blue links
and it was stripped out of wikimedia installs for bloating reasons. Anyone have
information on that?

The 'internal' class on plain wiki links was removed long ago as it a) provides nothing additional and b) bloats up the HTML output by adding onto every dang link.

skizzerz wrote:

This is already doable via CSS, although a back-door method is needed to get the functionality. Something like the following in your MediaWiki:Common.css should generate the functionality you desire:

.hideinternal a { display: none; }
.hideinternal a.new { display: inline !important; }
/* shows external/interwiki links too */
.hideinternal a.external { display: inline !important; }
.hideinternal a.extiw { display: inline !important; }

Closing this as WONTFIX per comments 3 and 4.