thiemowmde added a comment.
I might oversimplify this, but exposing the API endpoint should be possible
like that:
name=In SpecialMathWikibase.php
$settings = WikibaseClient::getDefaultInstance()->getSettings();
$url = $settings->getSetting( 'repoUrl' );
$scriptPath = $setting
Physikerwelt added a comment.
@thiemowmde ok. I only need two variables language and action API url
endpoint. The hard part will be to get these values the rest I did for another
project already https://www.npmjs.com/package/codemirror-wikidata However, it
somehow feels like reinventing the
thiemowmde added a comment.
@Physikerwelt, sorry for not responding earlier. My advice is: don't use
jquery.wikibase.entityselector. Write your own code, ideally based on OOUI, not
jQuery. Seriously. It's your code then, and it does exactly what you want,
which isn't that much. The existing
Physikerwelt added a comment.
I am still confused. Are there no other situations where one needs to select
a Wikidata item in Wikipedia? For instance, if one wants to connect a page with
its Wikibase item. At one time there was an "add links" button that you could
click and then a js popup c
Lucas_Werkmeister_WMDE added a comment.
No, please don’t load WikibaseRepo on Client wikis. Client and Repo are
separate extensions for a reason.
TASK DETAIL
https://phabricator.wikimedia.org/T229939
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To
Physikerwelt claimed this task.
TASK DETAIL
https://phabricator.wikimedia.org/T229939
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Physikerwelt
Cc: Liuxinyu970226, Ladsgroup, Lucas_Werkmeister_WMDE, hoo, Aklapper,
Framawiki, MaxSem, thiemowmde, Tg
Physikerwelt added a comment.
@thiemowmde The code is only executed when a user visits the special page.
Maybe loading the WikibaseRepo code entirely would make sense since
communication with the wikibase repo is required to figure out which entries
exist. If the module would be factored out
thiemowmde added a comment.
As far as I understand the issue is that whatever method you choose to load a
module, it only works when the module is //known//, i.e. it is registered in
the extension registration. The `jquery.wikibase.entityselector` module is part
of WikibaseView. I had a clos
Physikerwelt added a comment.
@thiemowmde do you have by chance any idea how we can make progress here? I
simply don't know what to do next.
TASK DETAIL
https://phabricator.wikimedia.org/T229939
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Phy