Page MenuHomePhabricator

Mobile: Redlink in hatnote is not red
Closed, DeclinedPublic

Description

In Minerva, redlinks in hatnotes are not red, but blue. They become red after you focus them (e.g. hold finger over them)

See: https://en.m.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=884468638 (at the bottom of the page)

Event Timeline

Can you provide some example urls / screenshots? Thanks in advance!

Try my attempt here: https://en.m.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=884468638 (at the bottom of the page)

But it is broken in every hatnote on cswiki, enwiki and possibly all the others.

I think an assumption has been made here that hatnotes never contain links and if they do they link somewhere.

Flagging to Alex. I assume the issue here is that red links serve as an indication to editors that something broke.

setting this to "low" with the assumption that this happens rarely (a redlink in a hatnote), please let me know if this is not the case

toorich raised the priority of this task from Low to Medium.Jun 27 2020, 9:18 PM
toorich subscribed.

I have a screenshot (shoted at Chinese Wikiquote).

Screenshot_2020-06-27-12-20-37-067_com.android.chrome.jpg (2×1 px, 470 KB)

Jdlrobson lowered the priority of this task from Medium to Low.Jun 27 2020, 10:24 PM

Please don't change priorities unless you are a maintainer of the project. Please note there is a bug with red links tracked at T256503 that will be fixed next week.

If this was not intentional, the rule .hatnote a, .dablink a, .rellink a can be removed since that rule sets the hatnote link color to the default link color and is redundant. If it is intentional a comment should be added to the code.

@Jdlrobson @alexhollender_WMF Both assumptions are wrong.

  1. Hatnotes do contain links in most cases. For example, [[w:en:Template:Main]] is used in >350,000 pages.
  2. Links in hatnotes are frequently red links in some wikis, e.g. jawiki. This is because it is accustomed to include [[w:ja:Template:仮リンク]] (counterpart of [[w:en:Template:Interlanguage link]]) when the linked article is only available in other languages. A quick search of Main+仮リンク on jawiki shows 2k results.

Hey @patilise @alexhollender_WMF is no longer here but I can help answer this! Thanks for the note about Japanese Wikipedia. As of today, the hatnote styles provided by Extension:WikimediaMessages can be overridden on wiki (or even disabled) if a project uses them but I think the existing default behaviour makes sense for most wikis. I am thus declining this ticket and recommending you fix this on wiki with help from an interface admin.

For Japanese and other projects which wish to display red links I'd suggest passing the following message onto an interface administrator:

More guidelines can be found here: https://www.mediawiki.org/wiki/Extension:WikimediaMessages#Site_admin_helper

Hope this is helpful!