Two quick thoughts on fallback languages: One general rule perhaps could be to not select a language with a different script when one in the same script is available. (At least for users with a preference for a latin language - this may be different the other way around.)
A broader solution could be offering the user an individual setting for a the sequence of fallback languages (as used, e.g., in http content negotiation) across all Wikidata interfaces. But of course that's a much larger effort, and has perhaps been discussed elsewhere already.
Cheers, Joachim
-----Ursprüngliche Nachricht----- Von: Wikidata-tech [mailto:wikidata-tech-bounces@lists.wikimedia.org] Im Auftrag von Stas Malyshev Gesendet: Freitag, 3. November 2017 01:40 An: Wikidata technical discussion; Lydia Pintscher Cc: Internal communications for WMF search and discovery team Betreff: Re: [Wikidata-tech] Wikidata fulltext search results output
Hi!
When showing labels from fallback languages we do have little language indicators in other places. I believe we should have this here as
Makes sense. I'll look into how to get those. Is language code OK or we need full language name (uk vs. Ukrainian)?
One thing to note here is that secondary languages have no order - i.e. if you look in German, and there's no matching German label, but there are 10 other language labels all the same (happens a lot for names & places), which language will be selected is anybody's guess. We could add rule that says "look at English as secondary first", in theory, but not sure whether we should - after all, besides having most languages, (and us speaking it :) there's not much special about it.
I'm slightly leaning toward showing both.
OK.
I'd say in this case we could get rid of the word/byte count. To get a good glimpse of the quality of the item I'd say we'd want to show count of statements (excluding identifier statements), identifiers and sitelinks.
OK, I'll try to make this.
- Display format for Wikidata and for other wikipedia sites is different:
Wikpedia:
Title Snippet
Wikidata:
Title: Description
I.e. Wikipedia puts title on a separate line, while Wikidata keeps it on the same line, separated by colon. Is there any reason for this difference? Do we want to go back to the common format?
Not sure if we had a reason tbh.
OK then, I'll feel free to shuffle things around then :) Having more freedom in the title line is good because we can then display both label & aliases.
Thanks!
Stas Malyshev smalyshev@wikimedia.org
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Hi!
Two quick thoughts on fallback languages: One general rule perhaps could be to not select a language with a different script when one in the same script is available. (At least for users with a preference for a latin language - this may be different the other way around.)
This is a good idea, except that I don't really have tools to do this right now, I think, at least not without adding a lot to Language classes (maybe I'm wrong, I'll check). So for now I think I am going to trust whoever composed the fallback chains and use those. So basically the idea would be to display:
1. Title & description in user's display language. If the match happened in those, it will be highlighted. 1.1 Failing to find those, walk back the fallback chain until some title/description is found and display that one. Again, if the match happened there, it will be highlighted. 1.2 If we still failed to find any label/description, just display Q-id for label and nothing for description.
2. If we still did not display the actual string that was matched (i.e. it is an alias, non-main language, etc.) - display it too, in addition to what we already displayed.
3. If any string is displayed in language different from user's current display language, it will have a mark that says in which language it is displayed (except for Q-id string, obviously).
I think this should do for now, but we can always improve it later :) Thanks,
wikidata-tech@lists.wikimedia.org