User:Leon2323/wikisearch.css

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  Wikia Finder    function wikiasearchjs { var oup = document.getElementById('finderOutput') oup.innerHTML = '';

var inp = document.finder.input.value; var str = inp.toLowerCase.replace(/[^A-Za-z0-9\-]/g,''); var inpspc = inp.replace(/[\s\+\:]/g,'_');

// search for exact title match var exmatch = 0; oup.innerHTML += '\n Exact Matches '; for(var i=0;ihttp://' + wl[i] + '.wikia.com  ';     exmatch++; } }  if(exmatch==0) oup.innerHTML += '&bull; none found ';

// search for substring match var ssmatch = 0; oup.innerHTML += '\n Close Matches '; for(var i=0;ihttp://' + wl[i] + '.wikia.com (substring) ';     ssmatch++; if(ssmatch >= 50) break; } }  if(ssmatch==0) oup.innerHTML += '&bull; none found ';

//search for any word match var awmatch = 0; if(inpspc.indexOf('_') != -1) { oup.innerHTML += '\n Fuzzy Matches ';   var inpa = inpspc.split('_') for(var k=0;khttp://' + wl[i] + '.wikia.com (substring) ';         awmatch++; }     }          if(awmatch >= 50) break }   if(awmatch==0) oup.innerHTML += '&bull; none found '; }

if(exmatch+ssmatch+awmatch==0) { oup.innerHTML += '\nYour topic might be covered in one of the wikis linked below. See the end of this page to search by category'; oup.innerHTML += '<iframe width="100%" height="350px" src="http://www.google.com/search?q=site:wikia.com+intitle:%22' + inp + '%22">'; oup.innerHTML += ' '; } oup.innerHTML += ''; }

function wikiacatsjs { var oup = document.getElementById('catterOutput') oup.innerHTML = '';

var inp = document.catter.input.value var str = escape(inp); oup.innerHTML += ''; // oup.innerHTML += '<iframe width="100%" height="350px" src="http://www.google.com/search?q=site:www.wikia.com+inurl:%2Fwiki%2FCategory+intitle:%22' + str + '%22">'; oup.innerHTML += '<iframe width="100%" height="350px" src="http://www.wikia.com/wiki/Special:Search?ns14=1&ns15=1&searchx=Search&search=' + str + '">'; oup.innerHTML += ' '; oup.innerHTML += ''; } 

Search by topic or title

<form name="finder" id="finder" action="javascript:return false;" onSubmit="document.finder.Search.click;return false;"> What topic would you like to find a wiki on? Think of a TV show or place you love, a passion, a hobby, or an interest.

Enter a single word or short phrase for best results, like 'sport' or 'star wars'. <input type="text" name="input" value="" size="20" maxlength="100"> <input type="button" name="Search" value="Search for title" onClick="wikiasearchjs">

</a> You can <a href="http://www.wikia.com/wiki/List_of_Wikia">view the complete list of wikis</a> or browse for wikis by <a href="http://www.wikia.com/wiki/Category:Wikia_categories">category</a>.

Search by category

<form name="catter" id="catter" action="javascript:return false;" onSubmit="document.catter.Search.click;return false;"> Search for a category: <input type="text" name="input" value="" size="20" maxlength="100"> <input type="button" name="Search" value="Search for category" onClick="wikiacatsjs">

Nothing found? Is this topic something which is likely to attract a large community of people who would edit a wiki?

&bull; if yes, you can request a wiki at <a href="http://requests.wikia.com/wiki/Request_Wiki:Request_a_Wikia">requests.wikia.com</a>

&bull; if no, why not create a mini-wiki on this topic at <a href="http://scratchpad.wikia.com/">Scratchpad</a>?