Page MenuHomePhabricator

Search page should have interwiki links that preserve the query
Closed, DuplicatePublicFeature

Description

Author: 01mf02

Description:
Use case:
When I search for e.g. movies on Wikipedia, I usually type the movie name into the search field. However, sometimes movie articles are available in other languages only. When I realise that, I have to copy the movie name, go to the main page, switch to the other language, paste the movie name into the search field and search there.

Possible solution:
On search results, there could be the usual language selection area which is present on most articles. Clicking on a language there would take you to the search dialog of the specific language version of the wiki, or maybe even directly to the desired article.

User scenario:

  • User starts English Wikipedia.
  • User searchs for "Le petit baigneur".
  • Search results appear, because the article was not found on the English WP.
  • User clicks "Francais" in the "Languages" area at the left.
  • Article "Le petit baigneur" appears on the French WP.

What do you think?


Version: 1.17.x
Severity: enhancement
See Also:
T62580: foreign language prefixes in URL should redirect to canonical names, resolving using host wiki language

Details

Reference
bz24289

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:02 PM
bzimport set Reference to bz24289.
bzimport added a subscriber: Unknown Object (MLST).

rainman wrote:

I am not sure if there is currently a mechanism for adding interwiki links to special pages, but it might be a good idea to have one. Or, interwiki links for special pages like special:search could be automatically generated from available languages.

01mf02 wrote:

I just wanted to know if there is any progress on this bug? The latter feature Robert proposed, having automatically generated interwiki links from available languages, seems to me like the way to go ...

a.d.bergi wrote:

I think this would be the best solution for this recurrent issue.

Interwiki links at special pages are already possible, for example see http://de.wikipedia.org/wiki/Spezial:Letzte_Änderungen (MediaWiki:Recentchangestext includes the interwiki-link-template for the German main page, which has the advantage that the interwikis are well selected).

A cross-project search feature is favored all the time, a quick search gave already Bug 25278, Bug 24658, Bug 22420 and Bug 1837 (not including duplicates).

I think providing this at the already existing interwiki portlet is the most intuitive and simple solution, which also does not need a multi-project content search.

So I'm "capturing" this bug and giving it a more general approach: Pass the url parameters at special pages on to the interwiki links (when there are some). This should be comparatively easy, there's just one ambitious thing:
localised parameter values, for example "go=Artikel", should be internationalized or simplified to e.g. "go=1" or "fulltext=fulltext".

This feature is most needed at Special:Search, and the parameter replacement could be hardcoded for that, but it would be even better if it worked on every special page.

In order to do this "The Right Way" we need:

  • Ability to add interwiki links to a Special-page without hacking via one of the interface messages on that page

Or:

  • Ability to know which interwikis are MediaWiki-installs (ie. not bugzilla or googlecache) and which aren't [1]
  • And add a wikiglobal configuration option to enable automatic listing of interlanguage links on SpecialPages, filtering only interwikis that are A) local=1, B) interlanguage (ie. not wiktionary from en.wikipedia), C) are actual mediawiki-installations with a known scriptpath

Krinkle

[1] This is fixed in trunk if I recall correctly. The interwiki table was expanded in 1.17 or 1.18.

a.d.bergi wrote:

(In reply to comment #4)

  • Ability to add interwiki links to a Special-page without hacking via one of

the interface messages on that page

OK, even that is not working on every special page, we've tried (http://de.wikipedia.org/w/index.php?title=MediaWiki:Search-nonefound&action=history) and failed.
When this is implemented neat (for all special pages) I guess some new interface messages should be targeted, so that theres no need to hack some of the existing (which may only in special cases be present at the page).

I don't think we need a wikiglobal configuration, just as like as the interwiki links on the several mainpages.

Krinkle renamed this task from Pass search parameters to the interwiki links on special pages to Search page should have interwiki links that preserve the query.Aug 14 2018, 8:35 PM
Krinkle edited projects, added MediaWiki-Search; removed MediaWiki-Special-pages.
Krinkle removed a subscriber: wikibugs-l-list.
debt subscribed.

This sounds like an interesting idea, but not part of the Discovery-Search project, so removing our tag.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:00 AM