Lucas_Werkmeister_WMDE added a comment.

  `wbRepo` is available on clients if you request the ResourceLoader module:
  
    mw.loader.using(
      'mw.config.values.wbRepo',
      () =>  console.log( mw.config.get( 'wbRepo' ) )
    );
  
  
  
    {
      "url": "https://www.wikidata.org";,
      "scriptPath": "/w",
      "articlePath": "/wiki/$1"
    }
  
  But it doesn’t contain the item namespace, so trying to build a regex just 
from that information will not work well on wikis with an `Item:` namespace.

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

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

To: Lucas_Werkmeister_WMDE
Cc: Aklapper, Michael, darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Wikidata-bugs, Superyetkin, aude, 
Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to