ngkountas added a comment.

  Adding to Pau's comment above, I checked that the module that registers the 
“Edit language links” action button is the `wikibase.client.vector-2022` 
module. I checked the loaded modules for the above page 
<https://en.wikipedia.org/wiki/Anniversary_Peak> (using `mw.inspect()` inside 
the Developer’s console) and the module doesn’t seem loaded. This is why the 
button is not visible. I checked the conditions used to add the module, in the 
codebase 
<https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Wikibase/+/refs/heads/master/client/includes/Hooks/BeforePageDisplayHandler.php#83>
 and I believe it's the following condition that prevents the module from being 
added:
  
    $outputPage->getProperty( 'wikibase_item' ) !== null
  
  The `wikibase_item` property for this page seems to be undefined. We can 
easily verify that by using the following API URL: 
https://en.wikipedia.org/w/api.php?action=query&prop=pageprops&titles=Anniversary_Peak&format=json
 and check that there is no "wikibase_item" key returned.
  
  So, I think we should also add the `wikibase.client.vector-2022` module for 
pages where `wikibase_item` property is null.

TASK DETAIL
  https://phabricator.wikimedia.org/T310259

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Michael, ngkountas
Cc: Pikne, Arian_Bozorg, ngkountas, Lucas_Werkmeister_WMDE, Hooman_Mallahzadeh, 
Nikerabbit, Snaevar, karapayneWMDE, ItamarWMDE, Tgr, EChukwukere-WMF, 
Lydia_Pintscher, santhosh, olga, Aklapper, Theklan, ovasileva, Pginer-WMF, 
JCW555, hnijhuis, Astuthiodit_1, Patafisik_WMF, Invadibot, Selby, 
Universal_Omega, maantietaja, Akuckartz, Demian, Nandana, Jony, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, JJMC89, Iniquity, _jensen, rosalieper, 
Agabi10, Taiwania_Justo, Scott_WUaS, Volker_E, Wikidata-bugs, aude, Amire80, 
Arrbee, KartikMistry, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to