yarl / pattypan

Upload files to Wikimedia Commons. The Spreadsheet Way.
https://commons.wikimedia.org/wiki/Commons:Pattypan
MIT License
56 stars 37 forks source link

Support for File captions #92

Open JeanFred opened 5 years ago

JeanFred commented 5 years ago

(This is a subtask of #49)

File captions have been deployed to Wikimedia Commons last week. Support in Pattypan would be awesome :)

For the similar issue on the Commons Android App, see https://github.com/commons-app/apps-android-commons/issues/2297

According to a comment by @addshore there, the way to do this is to make additional API calls to wbsetlabel, using the media ID (which is derived from the page_id, which I presume also needs to be retrieved post-upload via an API call?)

Ash-Crow commented 5 years ago

Interface-wise, I think the easier way to support this would be to ask for a list of language codes and generate the relevant columns in the .xls

addshore commented 5 years ago

Interface-wise, I think the easier way to support this would be to ask for a list of language codes and generate the relevant columns in the .xls

All valid language codes for captions

https://commons.wikimedia.org/w/api.php?action=query&meta=wbcontentlanguages&wbclcontext=term&wbclprop=code%7Cautonym

This will get you the captions for a given mediainfo entity

https://commons.wikimedia.org/w/api.php?action=wbgetentities&ids=M3908058

Abbe98 commented 5 years ago

Currently all API calls/uploading etc goes through the wiki.java library. Any upstream enchantments related to this issue and future SDC features would help.

https://github.com/MER-C/wiki-java/

Ash-Crow commented 5 years ago

Interface-wise, I think the easier way to support this would be to ask for a list of language codes and generate the relevant columns in the .xls

All valid language codes for captions

I meant, ask the user for the codes of the languages they intend to fill, not create 300-ish columns in the Excel file with all the valid languages ;)

Luke-74 commented 3 years ago

Hello, I don't know if this is correct way to ask and I apologize if I post this on wrong forum.

I want to upload more than 6OO maps, I tried pattypan and was successful with a small sample (3), except I wasn't able to fill in captions. Is there any progress with supporting it, or do you have alternatives, which could be used?

Thank you for reply

Abbe98 commented 3 years ago

The best way currently in my opinion is to first do the upload with Pattypan and then use Quickstatements for the structured data/captions.

Luke-74 commented 3 years ago

The best way currently in my opinion is to first do the upload with Pattypan and then use Quickstatements for the structured data/captions.

Thank you, I try two maps today and it worked.

Battleofalma commented 3 years ago

The best way currently in my opinion is to first do the upload with Pattypan and then use Quickstatements for the structured data/captions.

How do you add captions with QS? SD I get as it's Mnumber Pnumber Qnumber but what's the syntax for captions? Thanks!