Page MenuHomePhabricator

QRpedia should point to Wikidata entity
Open, LowestPublic

Description

Today, the URL of a QRcode is langcode.qrwp.org/Article_name
This should be complemented with a new default like d.qrwp.org/EntityID

This code should get the language links from Wikidata directly and provides backwards compability.

There is one obvious advantage with this, stability. If the article is moved on the originating Wikipedia and a new one is taking its place, the QR-code will point to a completely wrong article. (Probably a Template:For will be put in the top of that article, but that might not be true for other languages.)

A disadvantage is that you always need to make a lookup to see what languages are available instead of heading of to the article directly if the originating article is in the same language as your phone.

So if the $requested_language resolves to 'd' a separate piece of code is run where the call for language would then be something like https://www.wikidata.org/w/api.php?action=wbgetentities&props=sitelinks%2Furls&ids=$request

This returns all sitelinks, and perhaps (or not) you would want to remove all non-wikipedias.


Version: unspecified
Severity: enhancement
See Also:
T72159: Forward according to user's preferred language on Special:GoToLinkedPage

Details

Reference
bz63463

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 3:09 AM
bzimport added a project: QRpedia-General.
bzimport set Reference to bz63463.
Ainali created this task.Apr 3 2014, 9:21 AM
Ainali added a comment.Apr 3 2014, 9:25 AM

With the my second sentence I meant that when creating a new QR-code on qrpedia.org, this should generate a new wikidata-qrpedia-URL.

I would add that in such a case the generated QR code would be much smaller especially comparing to long non-Latin article names.

I support the idea, but this is not a small change (in particular because we need to keep the backward compatibilty).

I think this is an important change.

I know that QRpedia codes have been printed on signs in a town in Sweden, codes pointing to the article [[:sv:Teaterladan]] ("Theatre barn", [[:en:Hedemora Gamla Theater]]). That article has been translated to many languages, but there are actually many barn theatres in Sweden. If any of the other barn theatres get a Wikipedia article, the QR-code will point to a disambiguation page, and that page will probably only be avaliable in Swedish.

The GoToLinkedPage functionality in Wikidata should be the first piece needed in order to get this to work. It doesn't have it's own language fallback yet but the existing one could possibly be reused?

For backwards compatibility would it be possible to, internally, point all generated qr-codes to the current Wikidata-id?

E.g. https://www.wikidata.org/wiki/Special:GoToLinkedPage/svwiki/Q1652884 and https://www.wikidata.org/wiki/Special:GoToLinkedPage/enwiki/Q1652884 would work for the example given above.

The GoToLinkedPage functionality in Wikidata should be the first piece needed in order to get this to work. It doesn't have it's own language fallback yet but the existing one could possibly be reused?
For backwards compatibility would it be possible to, internally, point all generated qr-codes to the current Wikidata-id?
E.g. https://www.wikidata.org/wiki/Special:GoToLinkedPage/svwiki/Q1652884 and https://www.wikidata.org/wiki/Special:GoToLinkedPage/enwiki/Q1652884 would work for the example given above.

Yes this page is the way to go. It can now also take several sites as parameters.

Liuxinyu970226 added a subscriber: Liuxinyu970226.
Aklapper removed Kelson as the assignee of this task.Aug 31 2018, 11:21 AM
Aklapper added a subscriber: Kelson.