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

Easy button to open linked Wikidata item #311

Open
addshore opened this issue Dec 24, 2018 · 8 comments
Open

Easy button to open linked Wikidata item #311

addshore opened this issue Dec 24, 2018 · 8 comments

Comments

@addshore
Copy link
Member

While patrolling enwiki vandalism it would be great to be able to quickly open Wikidata for the respected article to allow checking of facts, for example when a data of birth is changed, i want to go to wikidata, look at the references and see what is actually right.

@benapetr
Copy link
Member

OK can you explain how that can be done? How do you even retrieve name of that "linked Wikidata item"

@addshore
Copy link
Member Author

https://www.wikidata.org/wiki/Special:ItemByTitle/enwiki/Berlin for example would work :)

@addshore
Copy link
Member Author

But it would also be cool to only show the link if the article is actually linked to a wikidata item.
In which case you would need an API lookup, the entity ID attached to the page can be found through the pageprops api afaik.
I wouldn't want to add another API call, but perhaps we can bundle it into one that is already happening?

@benapetr
Copy link
Member

I don't know if this is possible to bundle and I don't even know the API call, that link you gave me is definitely not an API :P

Given that wikidata is very WMF specific thing, this should be made as an extension, but that's just a self-note

@addshore
Copy link
Member Author

I don't know if this is possible to bundle and I don't even know the API call, that link you gave me is definitely not an API :P

Well, this is the link the button would need to link to ;) But no, not really an API. is there currently an API query that is made for each diff the user looks at?

Given that wikidata is very WMF specific thing, this should be made as an extension, but that's just a self-note

A Wikidata support extension could generally be quite a good idea.

@benapetr
Copy link
Member

@addshore there is several API calls done for each diff, this one is done for each https://github.com/huggle/huggle3-qt-lx/blob/master/src/huggle_core/wikiedit.cpp#L611

@benapetr
Copy link
Member

there are 2 api calls at least since MW no longer support obtaining of diff via same query as revision info, we also do other separate API queries, for each diff we also retrieve info about user who made it, their talk page (to parse warnings) and also page history to find who is founder of page

@huggle huggle deleted a comment from Sara8988 Dec 28, 2018
@benapetr
Copy link
Member

@addshore if you are coming to hackathon this year we could create this extension in JS engine ;)

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

No branches or pull requests

2 participants