Page MenuHomePhabricator

Interwiki links do not appear on en.wikt:Reconstruction:Proto-Indo-European/gʷḗn (and others)
Open, Needs TriagePublic

Description

Q38106075 on Wikidata contains links to several Wiktionary pages. Interwiki links appears on fr.wikt but not on en.wikt. It does not appear on es.wikt or mg.wikt either (it works on ja.wikt).

Is there any explanation?

Event Timeline

Pamputt renamed this task from Interwiki links does not appear on en.wikt:Reconstruction:Proto-Indo-European/gʷḗn to Interwiki links does not appear on en.wikt:Reconstruction:Proto-Indo-European/gʷḗn (and others).Nov 21 2018, 10:20 PM
Pamputt renamed this task from Interwiki links does not appear on en.wikt:Reconstruction:Proto-Indo-European/gʷḗn (and others) to Interwiki links do not appear on en.wikt:Reconstruction:Proto-Indo-European/gʷḗn (and others).
Pamputt updated the task description. (Show Details)

The main namespace is excluded because that uses Cognate to generate interwiki links, which is why the eswiktionary and mgwiktionary pages didn't work (mgwiktionary doesn't have an "Annexe" namespace).

I believe the problem on enwiktionary is caused by https://gerrit.wikimedia.org/g/operations/mediawiki-config/+/master/wmf-config/Wikibase.php#271:

Namespace 118 is excluded because it's the "Draft" namespace in some Wikipedias, but looking at the namespace definitions, namespace 118 is the "Reconstruction" namespace for enwiktionary, urwiktionary and zhwiktionary, and the "2014" namespace on wikimaniawiki. The places where 118 is the "Draft" namespace are all Wikipedias, except for hiwikiversity (and testwiki), so I think the config needs to check whether the current wiki is a Wikipedia or Wikiversity before excluding namespace 118.

Maybe this could be fixed by removing 118 from the array on line 294 and copying what the block of code starting at line 298 does?

i.e. adding something like:

if ( in_array( $wgDBname, MWWikiversions::readDbListFile( 'wikipedia' ) ) || in_array( $wgDBname, MWWikiversions::readDbListFile( 'wikiversity' ) ) ) {
	// draft namespace
	$excludeNamespaces[] = 118;
}
Dans T210114#8646160, @Nikki a écrit :

Namespace 118 is excluded because it's the "Draft" namespace in some Wikipedias, but looking at the namespace definitions, namespace 118 is the "Reconstruction" namespace for enwiktionary, urwiktionary and zhwiktionary, and the "2014" namespace on wikimaniawiki. The places where 118 is the "Draft" namespace are all Wikipedias, except for hiwikiversity (and testwiki), so I think the config needs to check whether the current wiki is a Wikipedia or Wikiversity before excluding namespace 118.

Would it be worth using the same integer namespace Reconstruction on all Wiktionaries? Search for "Reconstruction" in https://gerrit.wikimedia.org/r/plugins/gitiles/operations/mediawiki-config/+/master/wmf-config/core-Namespaces.php
Yet it is probably not so easy to change it now.