Page MenuHomePhabricator

Redirects should be italicised on Special:MostTranscludedPages (and maybe other pages as well)
Open, LowPublic

Description

Dedicated ticket for an issue I posted on T188737:

Redirects should be italicised on this special page as well: Special:MostTranscludedPages.

For consistency with other places, and I have an use case:

I'm using a JavaScript that adds display of protection levels of the listed templates, so that I can review and adjust them (add forgotten protections, remove excessive protections, etc.).
Quite often, the listed templates are actually redirects (some redirects are heavily used), and when clicking on the link I end up on the canonical template. It's easy to overlook it was a redirect, and I end up modifying the protection level on the canonical template instead of the redirect.

Event Timeline

Change 792297 had a related patch set uploaded (by Gerrit Patch Uploader; author: Anne Haunime):

[mediawiki/core@master] Italicise redirects on Special:MostTranscludedPages

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

Here is the CSS I'm adding in the patch:

.mw-special-Mostlinkedtemplates .mw-redirect {
    font-style: italic;
}

A few notes:

Uploaded a new patch:

.mw-special-Mostlinkedtemplates .mw-spcontent .mw-redirect {
    font-style: italic;
}

The selector is more specific, so that we target exclusively the templates listing, avoiding the MediaWiki interface around.
Alternatively, the slightly broader #mw-content-text or .mw-body-content could have been used.

I don't think we should really be using italics to show redirects.

There's a pressing need to use italics in some titles, e.g. https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Titles_of_works which is the subject of other feature requests, in particular T350648.

So, it would be better and clearer to use, as [[Special:WhatLinksHere]] does, the suffix (redirect page) ‎after the name of the page.