Page MenuHomePhabricator

Multiple scripts & interlanguage links issue
Open, Needs TriagePublic

Description

Description

Some languages support multiple scripts. I would expect that if there are interlanguage links available on the page they would be accessible regardless of which script I am reading the page in. As far as I can tell they currently only appear if you are on a certain script.

Here are two pages that support multiple scripts and have interlanguage links:

screenshotslink
image.png (1×1 px, 383 KB)
link to page
image.png (1×1 px, 531 KB)
link to page

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
StalledNone
StalledNone
InvalidNone
StalledNone
StalledNone
StalledNone
StalledNone
StalledFeatureNone
StalledNone
StalledFeatureNone
StalledFeatureNone
StalledFeatureNone
StalledNone
StalledNone
OpenNone
OpenNone
OpenNone
StalledNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone

Event Timeline

in case it's relevant/useful, languages that support language variants do not seem to have this issue. For example on this page on Kurdish Wikipedia (link to page) I can switch to any of the language variants via the dropdown and the interlanguage links remain there:

image.png (873×414 px, 129 KB)

@Pginer-WMF: This open task has no active project tag; could you please associate one (and also check if any other open tasks under Jan-Mar2022 should be re-tagged)? Thanks a lot in advance!

It is believed to be caused by Wikibase structural data storing issues, along with T114772 and other related issues.

The examples seem to be based on some custom solutions created by the communities (not using language converter). These are intended to group together the versions of the same article in different variants/scripts. However, they are technically separate pages and linking them in Wikidata happens independently (which is not ideal since this duplication leads to inconsistency). The above is to provide a bit of context based on input from @Amire80 . Better support from the language selector could help in cases like this.

I believe this is not a special case/usecase, as this issue also being mentioned by the Wikidata Taiwan community in COSCUP (Conference for Open Source Coders, Users and Promoters).

On Wikidata we call these "permanent duplicates". One page gets linked to the Wikidata item with all the data and sitelinks (in the example given, that's Sonia Shirsat which gets linked to Q26924563). For all other versions of a page, we create a separate item and add a statement instance of (P31) Wikimedia permanent duplicated page (Q21286738) and a statement permanent duplicated item (P2959) linking to the proper item (so for this example we have Q65445260 for सोनिया शिरसाट and Q113497590 for ಸೋನಿಯಾ ಶಿರ್ಸಾಟ್).

My suggestion would be:

Create a module which checks the "instance of" (P31) value of the current page. If it's "Wikimedia permanent duplicated page" (Q21286738), get the value of "permanent duplicated item" (P2959), load that item, get its sitelinks and then include them as interwiki links in the current page.

Then, call that module from the template for linking the different versions (सांचो:Lipi) and all versions of the page should get the same links.

I'm not sure if any wikis currently have a module that does exactly that which could be reused (if any, then probably the Ladino Wikipedia), but there are definitely some modules out there which do something similar. I don't have any links right now but I think there are some for Commons (because of galleries and categories), Incubator (because they can't be linked to Wikidata) and some of the Wikisources (because of books and individual editions of them).

So they are actually:

gom-deva
gom-knda
gom-latn
ks-arab
ks-deva

, right?