Page MenuHomePhabricator

titles that are near the page title size limitation fail to create interwiki links
Open, Needs TriagePublic

Description

c.f. original report on enwiki: https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=968827203#Interwiki_link_problem

Using the canonical namespace name works, but when using the localized name it does not - causing iw's via wikidata to also not work

Example links:

::[[:w:bn:Template:২০১৯–২০ করোনাভাইরাসের বৈশ্বিক মহামারীর উপাত্ত/বাংলাদেশে চিকিৎসামূলক ঘটনার রেখাচিত্র]] (works)
::[[:w:bn:টেমপ্লেট:২০১৯–২০ করোনাভাইরাসের বৈশ্বিক মহামারীর উপাত্ত/বাংলাদেশে চিকিৎসামূলক ঘটনার রেখাচিত্র]] (doesn't work)

Note: the problem also presents without the interwikis (see linked discussion above)

Event Timeline

Xaosflux renamed this task from some interwiki links to bnwiki are not working to some wikilinks in Bengali are not working.Jul 21 2020, 7:47 PM
Xaosflux updated the task description. (Show Details)
Xaosflux edited projects, added MediaWiki-Parser; removed MediaWiki-Interwiki.
Xaosflux added a subscriber: PrimeHunter.

After some more investigation, this appears to be a https://www.mediawiki.org/wiki/Page_title_size_limitations condition only, with the interwiki prefix putting the link just over the limit - so now the condition is: the page title is not over the limit itself, but it is failing when linked via wikidata interwiki's - causing a failure for pages that are close to the maximum byte size

Xaosflux renamed this task from some wikilinks in Bengali are not working to titles that are near the age title size limitation fail to create interwiki links.Jul 22 2020, 2:04 AM
Xaosflux renamed this task from titles that are near the age title size limitation fail to create interwiki links to titles that are near the page title size limitation fail to create interwiki links.

The interwiki prefix itself is not counted in the length limit but it causes a namespace to be counted.
I made some tests here: https://en.wikipedia.org/wiki/User:PrimeHunter/Page_name_size_in_interwiki_links

Summary: Page names can be at most 255 bytes excluding the namespace. But namespaces are not subtracted from the length in interwiki links so an interwiki link can currently (22 July 2020) be at most 255 bytes including the namespace. This means some valid pages outside mainspace cannot be linked in interwiki links.