Go to https://www.mediawiki.org/w/index.php?search="Developer+Experience"&title=Special:Search
See the results not showing an excerpt of the page content but Translate's <languages /> content.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Consider language selector an auxiliary page search element | mediawiki/extensions/Translate | master | +1 -1 |
Event Timeline
The "Developer Experience" section is empty and by default if no snippet is found, we show the first few words on the page. Which in this case is the list of languages. We might be able to find a simple tweak for this case.
If the template responsible for this language block (Template:Languages?) could wrap this under an html tag that has the class searchaux I believe that this would solve this problem.
In the given example it's generated by the Translate extension: https://gerrit.wikimedia.org/g/mediawiki/extensions/Translate/+/65e3f8e68bdd0ec27da05996d276bdf29daef488/src/PageTranslation/Hooks.php#489
Change 991662 had a related patch set uploaded (by Ebernhardson; author: Ebernhardson):
[mediawiki/extensions/Translate@master] Consider language selector an auxiliary page search element
Note that once deployed this will not instantly fix the pages. The pages will be fixed on the next edit, or when the background reindexer gets to the page (once every ~16 weeks).
Change 991662 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Consider language selector an auxiliary page search element