Page MenuHomePhabricator

Use language in variants link id instead of incrementing numbers
Closed, ResolvedPublicFeature

Description

Feature summary (what you would like to be able to do and where):

Capture.JPG (726×682 px, 99 KB)

Currently variant links id use incrementing numbers (#ca-varlang-0, #ca-varlang-1, etc.). I suggested use language name as id (#ca-varlang-zh-Hans, #ca-varlang-zh-Hant, etc.).

Benefits (why should this be implemented?):
It's easier to control individual link for JS or CSS. For example, hide specific language links.
https://zh.wikipedia.org/wiki/MediaWiki:Gadget-hideConversionTab.css

Event Timeline

Change 759851 had a related patch set uploaded (by A2093064; author: A2093064):

[mediawiki/core@master] Use language name in variants link id

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

It affects these extensions: https://codesearch.wmcloud.org/search/?q=%23ca-varlang
I think we can add a new class like .ca-variants and use .ca-variants:first to specify first link.

Change 759851 merged by jenkins-bot:

[mediawiki/core@master] Use language name in variants link id

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

  NODES
HOME 1
Note 3
os 3
web 2