Search box

The search box is the portion of the Monobook skin in which users can search in content to find and view pages. The search box is primarily located within the Monbook sidebar; in the default sidebar, the search box is located under the 'community' box and above the 'toolbox'. While some wikis choose to do so, through css, the search box can be moved to other places, typically in the top-right corner of the page.

Customizing the search box
The search box section of the sidebar is notified by a 'search' header that cannot be changed via MediaWiki:Sidebar. However, the search box location can be changed by way of MediaWiki:Sidebar by using  as a line on the page. The search box's heading can be named a different name by using MediaWiki:Search.

The section of the sidebar that contains the search box can be customized by way of editing the rest of the sidebar.

Search buttons
In addition to editing the search box, there are two buttons for functionality of the search box. The "Go" button, upon clicked, will take the user directly to the page. A user typing the "Enter" key on their keyboard should also get this result. The "Search" button of the search box will take the user to the search results page of the text they posted in the search box. These buttons can be customized to fit the rest of the theme as well. The following code can be used to colorize the buttons, however, the variables must be filled in with an appropriate color: input.searchButton: hover { color: # ; background-color: # ; -moz-box-shadow: 0 0 2px # ; -webkit-box-shadow: 0 0 2px # ; -o-box-shadow: 0 0 2px # ; -ms-box-shadow: 0 0 2px # ; box-shadow: 0 0 2px # ; } input.goButton: hover { color: # ; background-color: # ; -moz-box-shadow: 0 0 2px # ; -webkit-box-shadow: 0 0 2px # ; -o-box-shadow: 0 0 2px # ; -ms-box-shadow: 0 0 2px # ; box-shadow: 0 0 2px # ; }

color: # ; background-color: # ; }	color: # ; background-color: # ; }
 * 1) searchGoButton {
 * 1) searchSearchButton {

Move search box to top-right corner
One popular cosmetic change to a wiki's search box is to move it to the top-right corner of the wiki, similar to that of Wikipedia. A similar code that is used to do so if provided below: Much like other codes, colors are not provided and are to be replaced by those selected by the user. /* ################################### */ /* ## SEARCH box POSITION ADJUSTMENT ## */ /* ################################### */	left:0; min-width:1032px; position:absolute; top:1.7em; width:100%; border-bottom: 0 none; }	float:right; margin-right:75px; width:255px; background-color: # ; border-width: 2px 2px 0; border-color:# !important; border-bottom:1px solid # !important; border-radius:2px 2px 0 0; -moz-border-radius:2px 2px 0 0; -webkit-border-radius:2px 2px 0 0; -o-border-radius:2px 2px 0 0; -khtml-border-radius:2px 2px 0 0; }
 * 1) p-search {
 * 1) p-search h5{ display:none;}
 * 2) p-search .pBody {