Page MenuHomePhabricator

Enabling to specify which tab of MediaSearch should open (eg images or pages) with InputBox on Commons
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):

On Wikimedia Commons, the default MediaSearch search has tabs 'Images', 'Audio', 'Video', 'Other Media', and 'Categories and Pages' where each tab only shows results of that type. Now when using a template that uses InputBox, one should be able to specify which of these tabs to open.

This is best explained with a concrete example – see the use case below.

This is related to T378756

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

I'd like to change Template:Search inside category, a searchbox for categories, so that one can specify which of those five tabs to open. This is so that in a category specific to videos like Category:Time-lapse videos, the tab that opens when searching is the Videos tab and a category specific to pages like Category:Other versions templates, the tab that opens is the Pages and Categories tab.

Benefits (why should this be implemented?):

Without being able to specify the tab, many users will be confused and not find the results. This is needed to make InputBox compatible with MediaSearch. The difference is whether it loads the url with &type=image at the end or eg &type=page.