[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

[L] Quick View: Create wiki project interwiki link widgets and add to the quick view panel
Closed, ResolvedPublic

Description

This work is part of the quickview panel epic https://phabricator.wikimedia.org/T306341

As a searcher, I want to have discoverability opportunities beyond a given wikipedia on the search result page to uncover relevant content.

Many articles have a community curated links on the same topic in other projects like wikiquotes, etc. Surface these links to the user, so they can explore other wiki projects and find relevant content.

Acceptance Criteria for Desktop:

  • If the article has a link to other projects show all of those projects here in quick view in the format shown in the design.
  • Do NOT include any Commons interwiki links (instead we are creating a MediaSearch based Commons widget in T310284).
  • Page title linking to the page.
  • Text from the top of the page that can fit in max of three lines and to be truncated there after. (Now handled in T316132)
  • Logo + project name
  • Interwiki links appear at the end of the quick view content, after the Commons widget.

See figma for position and spacing.

Special_Search (15).png (756×1 px, 119 KB)

Adding interwiki links on mobile is covered in this ticket T327540

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
AUgolnikova-WMF renamed this task from Surface wikilinks in the quickview panel to Surface sister projects in the quickview panel.Apr 28 2022, 10:54 AM
AUgolnikova-WMF updated the task description. (Show Details)
Seddon renamed this task from Surface sister projects in the quickview panel to Create sister project widgets and add to the quickview panel.Apr 28 2022, 1:29 PM
Sneha renamed this task from Create sister project widgets and add to the quickview panel to Quick View: Create wiki project interwiki link widgets and add to the quick view panel.Jun 10 2022, 6:51 PM
Sneha updated the task description. (Show Details)
CBogen renamed this task from Quick View: Create wiki project interwiki link widgets and add to the quick view panel to [M] Quick View: Create wiki project interwiki link widgets and add to the quick view panel.Aug 24 2022, 4:36 PM
CBogen renamed this task from [M] Quick View: Create wiki project interwiki link widgets and add to the quick view panel to [L] Quick View: Create wiki project interwiki link widgets and add to the quick view panel.Jan 11 2023, 5:41 PM

h @Sneha I have started to work on this story and I have a question or two...

  • Shall we limit the number of IW links that we show? It currently just grabs the first 10, but there could be way more than that in some instances
  • if we limit the number, should we show "more links" or something similar (not sure if it is actually possible to have a page that shows all the links)?
  • (just a technical detail) we are not able to inform that API that we do not want commons result, so we may have to get a larger number and then filter it after they are returned.

@SimoneThisDot Is there a technical or performance issue with showing all the links in the preview? From the UX point of view it is okay to show them all there on Desktop since the previews are scrollable and majority of articles do not have that many links.

There are two parts to this:

  1. We have to decide how many links to actually fetch. The more link we fetch the more the request take (it is prob milliseconds extra, but still adds to the user waiting) - Currently we just return 10
  2. Decide how to show it. I do not think we can show them all, for example for an article could have over 500 links.. we cannot show them all..

Also, are you sure that article do not have many links? Is this something you have checked? if this is the case then we may be ok to fetch many and show them all, but it would be worth to have some starts on this to help us better choose. Do not forget we could also have a "fetch more" button or something similar

Hi Simone, we have these skeletons in place and cascading loading on Desktop. So I would assume that most of the content will be already loaded while we are fetching the interwiki links. And we could just show the ones we fetch one by one while having the loading indicator indicate that more are being fetched. I am thinking if we have such a loading mechanism we don't need to add any other extra UI to fetch more.

As far as how many links an article typically has I am not sure how I can find that out but in my experience browsing wikipedia I have rarely come across anything more than 4. But perhaps we can find that out through data somehow.

HI, @Sneha thank you for the explanation above, those questions are now sorted. Unfortunately, I still need your help to clarify something about what we are showing (this was a follow-up to a discussion I had with Matthias).

The main question is. What kind of links are you expecting to show in this section?

  1. We want to just show wiki related links to other wikis. This will be locked to the following wikis:
  • wikipedia: <lang>wiki
  • wiktionary: <lang>wiktionary
  • wikiquotes: <lang>wikiquote
  • wikinews: <lang>wikinews
  • wikisource: <lang>wikisource
  • wikibooks: <lang>wikibooks
  • wikiversity: <lang>wikiversity
  • wikivoyage: <lang>wikivoyage
  • wikidata: wikidatawiki
  • wikispecies: specieswiki
  1. We actually try to replicate the existing external links section in the article (this is an example of Cat)

image.png (273×719 px, 74 KB)

We are keen on going ahead with the FIRST scenario, but I just wanted to confirm with you that you are ok with it. The list of wikis is flexible so we can add or remove wikis if you want to, but this seems to be the correct "Wiki projects" that are not just wikipedias.

  1. Yes this list makes sense. We can just restrict to our wiki projects.
  1. I was actually under the impression that we would be using links in the "In other projects" section. It seems like the number of links in "In other projects" vs in "External links" are slightly different. I am assuming the former comes from wikidata and the latter is added by the editor while editing article. Below is the image showing what I meant by "In other projects". I am okay to use any source as long as it's within the list you outlined above. But just wanted to clarify.

in other projects links.png (1×2 px, 1 MB)

cc @cchen as we were talking about the source of these links yesterday.

Also just circling back to the list in #1.

  • wikipedia: <lang>wiki (Since the user is already on wikipedia this won't be the case right? Or do you see other related pages on wikipedia linked to the article?
  • wiktionary: <lang>wiktionary
  • wikiquotes: <lang>wikiquote
  • wikinews: <lang>wikinews
  • wikisource: <lang>wikisource
  • wikibooks: <lang>wikibooks
  • wikiversity: <lang>wikiversity
  • wikivoyage: <lang>wikivoyage
  • wikidata: wikidatawiki (not sure if this will be useful for casual readers. If we want to keep for editors then best to show last. Actually tagging @MPhamWMF to chime in.)
  • wikispecies: specieswiki

Here are some stats for links per article.

  • The count includes Wikipedia and Wikidata.
  • I didn't see any links to Wikispecies in wikidata_entity table even though the article has Wikispecies link to it.
  • Most of the articles have 2 links to other projects. And the max number of links per article is 7.

Indonesian Wikipedia

Average number of links per page: 2
Max number of links per article: 6
Distribution of number of links per article:

Links per Article% of Articles
02.3%
297.5%
30.02%
40.1%
50.02%
60.01%

Portuguese Wikipedia

Average number of links per page: 2
Max number of links per article: 6
Distribution of number of links per article:

Links per Article% of Articles
00.01%
298.5%
31.3%
40.07%
50.01%
60.01%

Russian Wikipedia

Average number of links per page: 2
Max number of links per article: 7
Distribution of number of links per article:

Links per Article% of Articles
00.7%
296.1%
32.8%
40.3%
50.06%
60.01%
70.01%

Change 889480 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[mediawiki/extensions/SearchVue@master] Create wiki project interwiki link widgets and add to the quick view panel

https://gerrit.wikimedia.org/r/889480

Change 889480 merged by jenkins-bot:

[mediawiki/extensions/SearchVue@master] Create wiki project interwiki link widgets and add to the quick view panel

https://gerrit.wikimedia.org/r/889480

Change 890436 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[operations/mediawiki-config@master] [SearchVue] Add wgQuickViewDataRepositoryApiBaseUri

https://gerrit.wikimedia.org/r/890436

Change 890436 merged by jenkins-bot:

[operations/mediawiki-config@master] [SearchVue] Add wgQuickViewDataRepositoryApiBaseUri

https://gerrit.wikimedia.org/r/890436

Change 890448 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/SearchVue@master] Create wiki project interwiki link widgets and add to the quick view panel

https://gerrit.wikimedia.org/r/890448

Change 890448 merged by jenkins-bot:

[mediawiki/extensions/SearchVue@master] Create wiki project interwiki link widgets and add to the quick view panel

https://gerrit.wikimedia.org/r/890448

Etonkovidova subscribed.

Checked in enwiki betalabs - the specs are in place.

anon user - the search preview panel is in full widtha logged in user - the search preview panel is narrow
Screen Shot 2023-02-22 at 3.47.07 PM.png (1×2 px, 989 KB)
Screen Shot 2023-02-22 at 3.50.37 PM.png (1×2 px, 691 KB)
Screen Shot 2023-02-22 at 3.53.06 PM.png (1×2 px, 685 KB)


Testing notes:

to check in production (all was tested in betalab)

  • the width toggle
  • opting out from thumbnail/search preview preferences in Preferences ->Search
  • whether mobile is affected