apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

[Feature]: replace share url with "use in wiki as" button

Open gangaasoonu opened this issue 5 months ago • 13 comments

What is the user problem or growth opportunity you want to see solved?

replace share url with "user in wiki as" button

This will allow users to copy the wiki style image URL from Wiki Commons App and paste it directly into wikipedia app.

Essentially, asking to place the functionality of "copy the wikitext to clipboard" blue colour button at the top bar

How do you know that this problem exists today? Why is this important?

Getting the https URL of the image serves lesser purpose than getting the wiki style image URL.

Providing use in wiki as button, which is present in Wiki Commons web page will allow users to add images to wikipedia more easily.

Who will benefit from it?

Wikipedia editors who wish to add images to wikipedia pages using Android app

Anything else you would like to add?

Adding user in wiki as button will make wiki commons Android app interface to be uniform with web version

gangaasoonu avatar Jun 06 '26 07:06 gangaasoonu

Image

gangaasoonu avatar Jun 06 '26 07:06 gangaasoonu

Image Image

gangaasoonu avatar Jun 06 '26 07:06 gangaasoonu

There is already a button to copy wikicode at the bottom of the activity. Does it give the content you want?

nicolas-raoul avatar Jun 07 '26 05:06 nicolas-raoul

There is already a button to copy wikicode at the bottom of the activity. Does it give the content you want?

Yes @nicolas-raoul the blue colour text button at the bottom does give the needed wiki style image URL.

I'm requesting to provide the functionality of the bottom blue color text button in the topbar.

Kindly replace the topbar URL with use in wiki as button. It will make the interface uniform across web and mobile versions

gangaasoonu avatar Jun 09 '26 09:06 gangaasoonu

I'm requesting to provide the functionality of the bottom blue color text button in the topbar.

@nicolas-raoul i agree with the point @gangaasoonu made here.

there are two advantages. First, if a Wikipedia editor is editing an article inside the Wikimedia app or on a mobile browser and wants to insert an image, pasting an HTTPS link won't work, it will just show an hyperlink instead of rendering the photo inside the article.

The second advantage is that it matches the desktop version of Wikimedia Commons. On the website, clicking on an image gives us the "Use this file" button, which copies the file URL, so we can directly paste it and edit the article.

Kota-Jagadeesh avatar Jun 10 '26 17:06 Kota-Jagadeesh

@Kota-Jagadeesh Is the database select happening in the python code in other repo called commons ?

gangaasoonu avatar Jul 02 '26 01:07 gangaasoonu

Is the database select happening in the python code in other repo called commons ?

no @gangaasoonu, this doesn't involve any pythonn code or backend database queries! this issue is a purely an UI change within this repository. the app already generates and possesses the wikitext string locally (which is how the blue button at the bottom displays it)

Kota-Jagadeesh avatar Jul 02 '26 13:07 Kota-Jagadeesh

@nicolas-raoul Can you share your opinions on this issue ?

Kota-Jagadeesh avatar Jul 23 '26 19:07 Kota-Jagadeesh

OK feel free to decide between you two on the best UI for this. Maybe make the link copy the wikitext, and remove the blue button from the bottom?

nicolas-raoul avatar Jul 24 '26 05:07 nicolas-raoul

Thanks @nicolas-raoul! That makes total sense.

so, i will proceed with:

  1. Updating the topbar menu action to copy the formatted Wikitext ([[File:...]]).
  2. Removing the bottom blue button to avoid duplication

@gangaasoonu Do you have any suggestions or is this fine for you?

Kota-Jagadeesh avatar Jul 24 '26 06:07 Kota-Jagadeesh

@nicolas-raoul Can i get this issue assigned to me?

Kota-Jagadeesh avatar Jul 24 '26 06:07 Kota-Jagadeesh

This is perfect.

Consistent UI in both web version and mobile version

Thank you @nicolas-raoul and @Kota-Jagadeesh

gangaasoonu avatar Jul 24 '26 23:07 gangaasoonu

Hi @Kota-Jagadeesh! Any progress to share? Even if you don't have a solution yet, would you mind sharing what you found, what you checked/tried, maybe what did not work? I assume you still intend to work on this, but if not please let us know. :-)

github-actions[bot] avatar Nov 15 '26 15:11 github-actions[bot]