Page MenuHomePhabricator

Add Special:TemplateSearch page for testing purposes
Closed, ResolvedPublic5 Estimated Story Points

Description

Add a new unlisted special page that includes the new TemplateSearchWidget for easy development and testing.


Event Timeline

Change #1118537 had a related patch set uploaded (by Samtar; author: Samtar):

[mediawiki/extensions/TemplateData@master] [WIP] SpecialTemplateSearchWidget: Add Special page

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

I wonder if we should call the new page Special:TemplateSearch (rather than include the implementation detail of the fact that it's a widget). It might be a useful special page to have so that there's some way to view one's list of favourites without opening a page for editing.

TheresNoTime renamed this task from Add Special:TemplateSearchWidget page for testing purposes to Add Special:TemplateSearch page for testing purposes.Feb 12 2025, 10:24 AM
TheresNoTime updated the task description. (Show Details)

I wonder if we should call the new page Special:TemplateSearch (rather than include the implementation detail of the fact that it's a widget). It might be a useful special page to have so that there's some way to view one's list of favourites without opening a page for editing.

Makes sense, will do that :-)

KSiebert set the point value for this task to 5.Feb 20 2025, 10:27 AM

Change #1118537 merged by jenkins-bot:

[mediawiki/extensions/TemplateData@master] SpecialTemplateSearch: Add Special page

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

After @dom_walden mentioned it in yesterday's standup, I've created a new task to add some extra functionality: T387186: Improve Special:TemplateSearch behaviour

There is a special page Special:TemplateSearch, when you set $wgTemplateDataEnableDiscovery = true.

When you type into the search input it makes a request to api.php?action=templatedata&includeMissingTitles=1&lang=en&generator=prefixsearch&gpssearch=<input>&gpsnamespace=10&gpslimit=10&redirects=1, the same request made by the existing template wizard functionality.