Is there any easy way to store wikidata id inside my local pages? Ideally I want to stop using: http://localhost:8080/wiki/Albert_Einstein?wikidataid=Q937&mobileaction=...
and go to http://localhost:8080/wiki/Albert_Einstein?mobileaction=alpha and pull data magically from Wikidata's Q937 entry.
Is this something we can get fixed? Not having this is making it hella tricky to work on https://trello.com/c/mvYxnIz6/9-3-alpha-page-styling-experiment-wikidata-des...
I'll look into this further and see if there's some way to hack a fake ID into articles.
On Thu, Dec 11, 2014 at 2:17 PM, Jon Robson jrobson@wikimedia.org wrote:
Is there any easy way to store wikidata id inside my local pages? Ideally I want to stop using:
http://localhost:8080/wiki/Albert_Einstein?wikidataid=Q937&mobileaction=...
and go to http://localhost:8080/wiki/Albert_Einstein?mobileaction=alpha and pull data magically from Wikidata's Q937 entry.
Is this something we can get fixed? Not having this is making it hella tricky to work on
https://trello.com/c/mvYxnIz6/9-3-alpha-page-styling-experiment-wikidata-des...
Mobile-l mailing list Mobile-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mobile-l
There are really two issues here: 1. Making your article think that it has a Wikidata ID 2. Pulling data from Wikidata
There are a few potential ways we could trick an article into thinking it has a Wikidata ID, but adding one to the query string is definitely the easiest. If we really wanted to, we could write a new parserfunction that would allow you to permanently embed a Wikidata ID into an article (via something like {{WIKIDATAID:Q1234}} in the wikitext), but that would be a lot of work for little gain. Pretty much any other solution would lose the ID whenever you save the page (since it's recorded as a page property).
As far as dynamically pulling data from Wikidata into your local wiki, I don't really think there's any sane way to do it. The way we got rid of making API requests on every load was to communicate with Wikidata's database directly on page save. Since your local wiki isn't on the cluster, it doesn't have any way to communicate with Wikidata's database directly. We could reimplement an API-based system just for testing, but that also seems like a lot of work for little gain.
If you provision the WikiGrok role in Vagrant, you get a local Wikidata repo and client, so you could theoretically populate your own Wikidata with test data, but I imagine that would be a bit tedious. Maybe Max has some other ideas.
Kaldari
On Thu, Dec 11, 2014 at 2:53 PM, Ryan Kaldari rkaldari@wikimedia.org wrote:
I'll look into this further and see if there's some way to hack a fake ID into articles.
On Thu, Dec 11, 2014 at 2:17 PM, Jon Robson jrobson@wikimedia.org wrote:
Is there any easy way to store wikidata id inside my local pages? Ideally I want to stop using:
http://localhost:8080/wiki/Albert_Einstein?wikidataid=Q937&mobileaction=...
and go to http://localhost:8080/wiki/Albert_Einstein?mobileaction=alpha and pull data magically from Wikidata's Q937 entry.
Is this something we can get fixed? Not having this is making it hella tricky to work on
https://trello.com/c/mvYxnIz6/9-3-alpha-page-styling-experiment-wikidata-des...
Mobile-l mailing list Mobile-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mobile-l