Page MenuHomePhabricator

In the list of "templates used on this page" when editing, highlight redirect templates by italicising them (like we do elsewhere).
Closed, ResolvedPublic


I suggest that

.templatesUsed .mw-redirect {
	font-style: italic;

be added to

The rationale being that MediaWiki already italicizes redirects in other places, for example:

On Special:AllPages and Special:PrefixIndex (

.allpagesredirect {
  font-style: italic;

In the list of categories at the bottom of the page (

.catlinks li {
  font-style: italic;

On category pages (

.redirect-in-category {
  font-style: italic;


Event Timeline

Nirmos created this task.Mar 2 2018, 2:52 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 2 2018, 2:52 PM
Nirmos triaged this task as Lowest priority.Mar 2 2018, 3:24 PM
AdityaJ added a subscriber: AdityaJ.Mar 3 2018, 6:19 PM

I have attempted to work on this task. It would be great if someone could have a look at it.

Change 416220 had a related patch set uploaded (by Zoranzoki21; owner: AdityaJ):
[mediawiki/core@master] Italicize .mw-redirect inside .templatesUsed when editing a page

Nirmos added a comment.EditedMar 4 2018, 12:12 AM

First of all, thank you so much for making a patch for this, and so quickly too!

Second, I feel I need to respond to one of the comments on gerrit:

I'll need to defer to Nirmos as I'm not really a MediaWiki developer

I'm not a MediaWiki developer, so if "defer to Nirmos" means waiting for me to do any kind of code review, don't hold your breath =) I'm just an admin at Swedish Wikipedia (

I know next-to-nothing about less, but I think this rule should be within the

.mw-editform {
	/* snip */

block. .templatesUsed and the other elements are children to .mw-editform, with the exception for #wikiPreview, which is why that is outside the .mw-editform block.

Also, the MediaWiki developers like traceability. If you could just add a simple comment that can be used to find this task, that would be golden:

/* T188737 */
.templatesUsed .mw-redirect {
	font-style: italic;

Again, thank you for doing this.

Jdforrester-WMF renamed this task from Italicize .mw-redirect inside .templatesUsed when editing a page to In the list of "templates used on this page" when editing, highlight redirect templates by italicising them (like we do elsewhere)..Mar 5 2018, 6:13 PM
Jdforrester-WMF updated the task description. (Show Details)
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

I've adjusted the title to better explain the why of the change in terms of benefit to the user rather than the technical what. Nice idea, let's do it.

Jdforrester-WMF closed this task as Resolved.Mar 5 2018, 6:34 PM

Thank you!