Jump to content

MediaWiki:Common: Difference between revisions

m
updated doc for search.js
(updated for removal of content that was moved to MediaWiki:Vector-2022.css)
m (updated doc for search.js)
 
Line 25: Line 25:
*First we allow for a user to add an "&withJS=MediaWiki:__.js" to a URL in order to view that page with a custom JS file that normally does not load for you (untested, so this documentation may be incorrect).
*First we allow for a user to add an "&withJS=MediaWiki:__.js" to a URL in order to view that page with a custom JS file that normally does not load for you (untested, so this documentation may be incorrect).


*If the user is on the advanced search page, [[MediaWiki:Common.js/search.js]] is imported in order to modify the page. It adds a dropdown menu that lets you pick another search engine in place of the barely useable built-in one.
*[[MediaWiki:Common.js/search.js]] is imported in order to modify the page (it will only take action if it detects we're on Special:Search). It adds a dropdown menu that lets you pick another search engine in place of the barely useable built-in one.


*The mw-collapsible class from MediaWiki core is extended to actually be collapsible, which allows [[Template:Divhide]] to work.
*The mw-collapsible class from MediaWiki core is extended to actually be collapsible, which allows [[Template:Divhide]] to work.