Wikia

Community Central

WatchlistRandom pageRecent changes

Search Bar

63,506pages on
this wiki

Forum page

Forums: Index Support Requests Search Bar
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 93 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


I've made a search bar using html in Isle of Tune Wiki like shown on the main page, but how can I make it so it searches exact match? So far, what I've got in there is:

<div style="width:620px"><form name="bodyCentralSearch" id="bodyCentralSearch" class="bodyCentralSearch" action="http://isleoftune.wikia.com/wiki/Special:Search"><div class="bodyCentralSearchWrap" style="margin: 20px auto; background-color:transparent; color: #999; width: 500px;"><input type="text" name="search" size="50" placeholder="Browse Isle of Tune..." style="border:1px solid #999; padding: 10px; width: 500px; font-size: 20px;" id="bodyCentralSearchInput" /><input type="hidden" value="1" checked="checked" /><input type="hidden" value="Search" name="go" /></div></form></div>

Sam Wang 08:36, February 7, 2012 (UTC)

Try using mw:Extension:InputBox.
--Category:Ciencia Al Poder (talk) -WikiDex 19:13, February 7, 2012 (UTC)

I knew about this a few months ago, but how can I use html to make it search? So far, the existing source in there is:

<div style="width:620px"><form name="bodyCentralSearch" id="bodyCentralSearch" class="bodyCentralSearch" action="http://isleoftune.wikia.com/wiki/Special:Search"><div class="bodyCentralSearchWrap" style="margin: 20px auto; background-color:transparent; color: #999; width: 500px;"><input type="text" name="search" size="50" placeholder="Browse Isle of Tune..." style="border:1px solid #999; padding: 10px; width: 500px; font-size: 20px;" id="bodyCentralSearchInput" /><input type="hidden" value="1" checked="checked" /><input type="hidden" value="Search" name="go" /></div></form></div>
Sam Wang 02:28, February 8, 2012 (UTC)
Try putting that code in a page like MediaWiki:CustomSearch and then put wikicode <verbatim>CustomSearch</verbatim> on a page and see if it works. -- Fandyllic (talk · contr) 8 Feb 2012 3:22 PM Pacific

(Reset indent) That's what I did, but I am looking to how can I change the html in MediaWiki:Search Bar so that it searches exact match instead of fulltext Sam Wang 02:33, February 9, 2012 (UTC)

Now the problem is that it has buttons which I don't want Sam Wang 08:31, February 9, 2012 (UTC)
I don't see anything in w:c:isleoftune:MediaWiki:Search_Bar. If you meant w:c:isleoftune:MediaWiki:SearchBar, then it appears you figured out how to get rid of the buttons. -- Fandyllic (talk · contr) 13 Feb 2012 3:46 PM Pacific
Then do you know how to search exact match instead of fulltext in that search bar? Sam Wang 09:43, February 14, 2012 (UTC)
You'd probably need extra code since you're using Special:Search (aka wiki search). In theory exact match would just be putting " (double quotes) around the search text, but you can't really do that with <input type="text"...>. -- Fandyllic (talk · contr) 14 Feb 2012 10:15 AM Pacific
I don't quite understand what you mean Sam Wang 09:24, February 16, 2012 (UTC)

(Reset indent) I've already changed it to:

<div style="width:620px"><form name="bodyCentralSearch" id="bodyCentralSearch" class="bodyCentralSearch" action="/wiki/Special:Search"><div class="bodyCentralSearchWrap" style="margin: 20px auto; color: #999; width: 500px;"><input type="hidden" name="search" size="50" placeholder="Search..." autocomplete="off" accesskey="f" method="get" style="border:1px solid #999; padding: 10px; width: 500px; font-size: 20px;" id="bodyCentralSearchInput" />
<input type="hidden" value="0" checked="checked" name="fulltext" />
<input type="submit">
</div></form></div>

Then what do I need to change? Sam Wang 11:55, February 16, 2012 (UTC)

What I was trying to say is that you probably can't do an exact match search with just HTML and you'd need to find an expert on wiki search (Special:Search; which is kind of horrible on Wikia, BTW) to help you figure out a workaround. -- Fandyllic (talk · contr) 16 Feb 2012 1:53 PM Pacific
I still don't quite understand what you are trying to describe Sam Wang 00:48, February 17, 2012 (UTC)

Latest Photos

Add a Photo
7,469photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki