Page MenuHomePhabricator

Feature request to search for "text excerpt snippets" from incoming links
Open, LowPublicFeature

Description

Idea from: https://lists.wikimedia.org/pipermail/wiki-research-l/2017-June/005855.html

That is, if I was writing the article [[Bang Bang Jump Up]], I would want a list [of results] along the lines of:

  • From article [[Winston Churchill]] within section "After the Second

World War" : On 23 July 1944 at [[Bang Bang Jump Up]], he met [[Harry
Truman]] to discuss the establishment of the [[United Nations]].

Where the bold text would be the content of the article surrounding the query.

I checked Tool labs, but was unable to find something that does this. I even personally swear I saw something similar recently, but I could be misremembering - and would love to be proven wrong!

From my own mucking about a very unreliable hack would be to do something like this (as links to articles are not consistent and the results not very readable):

insource:"[[Winston Churchill"

https://en.wikipedia.org/w/index.php?search=insource%3A%22%5B%5BWinston+Churchill%22&title=Special:Search&profile=default&fulltext=1&searchToken=52jpa9z5ixqywfpy2c98yjvcm

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@bd808 Do you know of any tools that to something similar? Show where a phrase appears in articles?

@bd808 Do you know of any tools that to something similar? Show where a phrase appears in articles?

I can't think of one off the top of my head, but I really would not be surprised if something like this already existed. I would suggest sending an email to labs-l asking if anyone there knows of a related tool.

A partial solution would be to use the linksto keyword: https://en.wikipedia.org/w/index.php?search=linksto%3A%22Winston+Churchill%22&fulltext=1

The highlighting here though is pretty much useless

I wrote a related tool for linking to article from related articles:
https://he.wikipedia.org/wiki/%D7%9E%D7%A9%D7%AA%D7%9E%D7%A9:%D7%A2%D7%A8%D7%9F/quickLinker.js

Based on my experience it seems relevant mainly for non-mainstream articles. (e.g it will be useless for "Winston Churchill" or "Barack Obama" but will be great for "Liandu District" or "Area Control Center"

This might be better solved with the Tool-Global-user-contributions team.

Which team did you mean? This was tagged with Collaboration, but I don't see how this is related to anything we do at all...

Aklapper changed the subtype of this task from "Task" to "Feature Request".