[Wikidata-bugs] [Maniphest] [Commented On] T202299: Create a system to create language-agnostic wiki links

2018-08-21 Thread Lydia_Pintscher
Lydia_Pintscher added a comment.
You can already use https://www.wikidata.org/wiki/Special:GoToLinkedPage for that. https://www.wikidata.org/wiki/Special:GoToLinkedPage/enwiki/Q42 for example links you to the English Wikipedia article about Douglas Adams. https://www.wikidata.org/wiki/Special:GoToLinkedPage/dewiki,enwiki,frwiki/Q42 should do the same with a fallback chain from German to English to French Wikipedia.TASK DETAILhttps://phabricator.wikimedia.org/T202299EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lydia_PintscherCc: Lydia_Pintscher, Pcoombe, TJones, Whatamidoing-WMF, Aklapper, CKoerner_WMF, Trizek-WMF, Johan, Phukettaxigroup, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, Srdjan_m, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T202299: Create a system to create language-agnostic wiki links

2018-08-20 Thread Pcoombe
Pcoombe added a comment.
Just to point out that QRpedia (wiki article) does something similar.TASK DETAILhttps://phabricator.wikimedia.org/T202299EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: PcoombeCc: Pcoombe, TJones, Whatamidoing-WMF, Aklapper, CKoerner_WMF, Trizek-WMF, Johan, Phukettaxigroup, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, Srdjan_m, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T202299: Create a system to create language-agnostic wiki links

2018-08-20 Thread Johan
Johan added a comment.
Yeah, indicating a specific wiki as a source would be a good solution.TASK DETAILhttps://phabricator.wikimedia.org/T202299EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JohanCc: TJones, Whatamidoing-WMF, Aklapper, CKoerner_WMF, Trizek-WMF, Johan, Phukettaxigroup, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, Srdjan_m, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T202299: Create a system to create language-agnostic wiki links

2018-08-20 Thread TJones
TJones added a comment.
While Wikidata items would be unambiguous, I think referencing a particular wiki as source is better, because it provides a better fallback than English if no article in the user's target language is available. Of course, using Wikidata as the intermediate stage to go from one language to another makes perfect sense.

Oh, and as long as Chris gets to ask for a pony, I want to ask for a notice on the target page that shows the original link, like a redirect notice, such as "(Shared from German Wikipedia Gift)" or "(Shared from English Wikipedia Gift)"—or whatever wording makes sense.TASK DETAILhttps://phabricator.wikimedia.org/T202299EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TJonesCc: TJones, Whatamidoing-WMF, Aklapper, CKoerner_WMF, Trizek-WMF, Johan, Phukettaxigroup, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, Srdjan_m, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T202299: Create a system to create language-agnostic wiki links

2018-08-20 Thread Trizek-WMF
Trizek-WMF added a comment.

In T202299#4515323, @Johan wrote:
Wikidata items could solve it, but few know how to use them.


We need a "Share that page to anyone" link. :)TASK DETAILhttps://phabricator.wikimedia.org/T202299EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Trizek-WMFCc: TJones, Whatamidoing-WMF, Aklapper, CKoerner_WMF, Trizek-WMF, Johan, Phukettaxigroup, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, Srdjan_m, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T202299: Create a system to create language-agnostic wiki links

2018-08-20 Thread Johan
Johan added a comment.
Would this default to the English meaning, then? https://en.wikipedia.org/wiki/Barn is about an agricultural building. https://sv.wikipedia.org/wiki/Barn is about children. If I write https://wikipedia.org/wiki/Barn, how is the software to determine which one to link to?

Wikidata items could solve it, but few know how to use them.TASK DETAILhttps://phabricator.wikimedia.org/T202299EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JohanCc: TJones, Whatamidoing-WMF, Aklapper, CKoerner_WMF, Trizek-WMF, Johan, Phukettaxigroup, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, Srdjan_m, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T202299: Create a system to create language-agnostic wiki links

2018-08-20 Thread TJones
TJones added a comment.
It might make sense to specify an initial language (ie., en.share.wikipedia.org/wiki/Goat or en.wikipedia.org/wiki/Special:MyLanguage/Goat or whatever), otherwise the intent can be ambiguous. e.g., should share.wikipedia.org/Gift go to English "Gift" or German "Gift" ("poison")?

Perhaps something similar to what the wikipedia.org portal does to determine language?

That's the Accept-Language header, I believe. For users who are not logged in, that would be a great fallback for determining the user's language.

Speaking of fallbacks, specifying an initial language also makes it the fallback, and mitigates the problem of "(ugh) English as a last resort". If I send the link from German Wikipedia to someone who speaks Italian but no Italian version is available, then the original German link is a better last resort than an unexpected English link. (Also, there may not be an English version for, say, a minor German celebrity or historical figure or small German town, so falling back to English won't always work.)

So my suggested revision to the initial rough logic would be:

Use some URL element to indicate that this is a "share-in-your-language" link, coming from some specific source language (e.g., any of share.en.wikipedia.org, en.share.wikipedia.org, share.wikipedia.org/en, en.wikipedia.org/wiki/Special:MyLanguage, etc.).

Is this user logged in to Wikipedia? If yes, what is their language preference? Show the article if available in that language, use fallback languages if possible, and use the original language as a last resort.

Is the user logged out? Then take a guess via browser settings, location, or some other known identifier (or combination via confidence scoring). Show the article in that language if available, use fallback languages if possible, and use the original language as a last resort.

A random thought: it would probably be best to redirect to a specific article page, and not to a second share/MyLanguage link on the best-guess target wiki. Otherwise you could set up a redirect loop. For example, if on English Wikipedia I have my language pref set to Spanish, but on Spanish Wikipedia I'm not logged in and my browser language pref is English, then a share-in-your-language link on English would send me to Spanish, but a link on Spanish would send me back to English, rinse and repeat. It's a weird case, but I can see myself having such settings as a result of doing testing.TASK DETAILhttps://phabricator.wikimedia.org/T202299EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TJonesCc: TJones, Whatamidoing-WMF, Aklapper, CKoerner_WMF, Trizek-WMF, Johan, Phukettaxigroup, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, Srdjan_m, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T202299: Create a system to create language-agnostic wiki links

2018-08-20 Thread Whatamidoing-WMF
Whatamidoing-WMF added a comment.
I think that this is the use case that interests me the most:  At mediawiki.org, it should be possible to write, "TechCom has a weekly meeting in [[magic-language:IRC]]." and have everyone who clicks that link be able to figure out what IRC is.TASK DETAILhttps://phabricator.wikimedia.org/T202299EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Whatamidoing-WMFCc: Whatamidoing-WMF, Aklapper, CKoerner_WMF, Trizek-WMF, Johan, Phukettaxigroup, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, Srdjan_m, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs