Book Image

MediaWiki Skins Design

Book Image

MediaWiki Skins Design

Overview of this book

Table of Contents (16 chapters)
MediaWiki Skins Design
Credits
About the Author
About the Reviewer
Preface

The Search Box: #p-search


The search box in MediaWiki is identified by #p-search. The search box contains a header, indicating the purpose of the content below, an input box to accept the visitor's search query, and two buttons. The first of these buttons, Go, tries to find a page in the wiki with a title that exactly matches the user's query. If it does not find any, it will display the search results page. The second button, Search, displays the search results page regardless of whether the query matches the title of an existing page or not.

<div id="p-search" class="portlet">
<h5><label for="searchInput">Search</label></h5>
<div id="searchBody" class="pBody">
<form action="/yourwiki/Special:Search" id="searchform"><div>
<input id="searchInput" name="search" type="text" title="Search JazzMeet [f]" accesskey="f" value="" />
<input type='submit' name="go" class="searchButton" id="searchGoButton" value="Go" />&nbsp;
<input...