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

Support for File captions #92

Open
JeanFred opened this issue Jan 18, 2019 · 8 comments
Open

Support for File captions #92

JeanFred opened this issue Jan 18, 2019 · 8 comments

Comments

@JeanFred
Copy link

(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 commons-app/apps-android-commons#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
Copy link
Contributor

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
Copy link

addshore commented Feb 5, 2019

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
Copy link
Collaborator

Abbe98 commented Feb 5, 2019

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
Copy link
Contributor

Ash-Crow commented Feb 5, 2019

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
Copy link

Luke-74 commented Feb 23, 2021

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
Copy link
Collaborator

Abbe98 commented Feb 23, 2021

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
Copy link

Luke-74 commented Feb 24, 2021

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
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants