User talk:Alex Smotrov/searchlist.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
 

    Find in…  ν 

Script adds extra features to the search form on the left.


«Go» button (or Enter):

  • will expand "short" namespace name: u → User, i → Image, c → Category, t → Template, me → MediaWiki,
  • holding Shift (in Firefox Ctrl) will open results in a new window

For examply, one could type «u:test», press Shift-Enter, and get «User:Test» in a new window.


«Search» button is replaced with a drop-down namespaces list:

  • 1st list item is a "new window / this window" selector.
  • There are two external search choices, Google on English Wikipedia and Google on Wikipedia.
  • "Default search" item works just like replaced «Search» button, in namespaces defined in you preferences.
  • Other items run searches in separate namespaces. To do this manually, one would have to go to the search page and use the form on the bottom.

Note: in Internet Explorer the list does not replace the button, but simply added below.


Installation: importScript('User:Alex Smotrov/searchlist.js');your monobook.js


Parameters: searchListNS and searchListShortNS can be redefined before calling the script, see the code for details.


Discussion[edit]

Help namespace[edit]

Could you add the Help namespace to the dropdown? Your script is quite useful--thanks! 06:29, 24 February 2008 (UTC)

Done. Thank you for support! —AlexSm 23:43, 24 February 2008 (UTC)[reply]