Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: get images from any wiki #4

Open
lucamauri opened this issue Nov 15, 2020 · 9 comments
Open

Feature request: get images from any wiki #4

lucamauri opened this issue Nov 15, 2020 · 9 comments
Labels
enhancement New feature or request

Comments

@lucamauri
Copy link

This extension allows getting images from the wiki where the WikiBase Repository is installed. Nevertheless I think it would be useful to be able to get images from another wiki that is neither Commons, nor the local Repository. For instance, in my case, I have a MW instance acting as a Repository, and a separate MW instance with Wikibase Client: I would like to reference images in the Repo instance, but images are actually at the Client one.

Ideally, it should be possible to setup the source wiki somewhere, I assume it should be enough to have the API endpoint of a remote wiki to obtain images' information.

If any of the extension programmer could point in the right direction, I would be willing to work on this modification by myself for my own purpose and eventually release the modified code.

Thanks

Luca

@lucamauri lucamauri added the enhancement New feature or request label Nov 15, 2020
@kghbln
Copy link
Member

kghbln commented Nov 16, 2020

Perhaps piggybacking into https://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos which allows to connect to other wikis is a way.

@lucamauri
Copy link
Author

lucamauri commented Nov 22, 2020

Perhaps piggybacking into https://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos which allows to connect to other wikis is a way.

Thanks @kghbln , looks like a promising idea.
Can you suggest where to act on the extension's code to make it read this information and use it to get the media file?

@MTRNord
Copy link

MTRNord commented Nov 22, 2021

Any progress on this? I am for this reason getting File:Unknown data type: localMedia I think.

@JeroenDeDauw
Copy link
Member

That error suggests you do not have the extension enabled. Or are using a tool that does not support the new type. Either way, probably not related to this feature request.

@MTRNord
Copy link

MTRNord commented Nov 22, 2021

That error suggests you do not have the extension enabled. Or are using a tool that does not support the new type. Either way, probably not related to this feature request.

Well I cannot activate it in the specific mediawiki as the wikibase repo is running on another mediawiki instance and if I activate it on the WikibaseClient side of the wiki the plugin will complain about missing the repository.

TL;DR: Client and Repo are 2 different mediawikis in this case and the plugin can only be activated on instances with the repo part of wikibase activated.

@JeroenDeDauw
Copy link
Member

I see. Indeed currently you cannot use this extension on a wiki with ONLY Wikibase Client on it. Here is a dedicated ticket for that new feature: #13

@MTRNord
Copy link

MTRNord commented Nov 22, 2021

I see. Indeed currently you cannot use this extension on a wiki with ONLY Wikibase Client on it. Here is a dedicated ticket for that new feature: #13

Thanks for clarifying that it is a separate issue :)

@GreenReaper
Copy link

GreenReaper commented Mar 25, 2023

I agree that this would be nice. I made a SPARQL function to generate links to an existing wiki which I figure I could convert to an actual image if JavaScript support is enabled on Wikibase.cloud, but actually being able to reference such external images as such would be better.

We'd probably prefer a foreign DB repo, as that'd presumably be faster, once the wikibase had been integrated into the server on which the other wikis were hosted rather than Wikibase.cloud.

@hrideshmg
Copy link
Contributor

Hi there, I've made a #37 to try and fix this issue. Please let me know if this meets the requirements or if I've missed anything. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants