Fandom Developers Wiki
Register
m (Fixing infobox.)
Tag: apiedit
No edit summary
Tags: Visual edit apiedit
Line 8: Line 8:
 
| Code = [[MediaWiki:SearchSuggest/code.js|code.js]]
 
| Code = [[MediaWiki:SearchSuggest/code.js|code.js]]
 
| Skins = Wikia/Oasis
 
| Skins = Wikia/Oasis
| Languages = {{#language:en}}<br/>{{#language:de}}<br/>{{#language:es}}<br/>{{#language:ca}}<br/>{{#language:hu}}<br/>{{#language:it}}<br/>{{#language:pl}}<br/>{{#language:nl}}<br />{{#language:ru}}
+
| Languages = {{#language:en}}<br/>{{#language:de}}<br/>{{#language:es}}<br/>{{#language:ca}}<br/>{{#language:hu}}<br/>{{#language:it}}<br/>{{#language:pl}}<br/>{{#language:nl}}<br />{{#language:ru}}<br />{{#language:uk}}
 
}}
 
}}
   

Revision as of 15:33, 8 April 2016

Wikia's fulltext search doesn't pay attention to page titles. So while it's easy to find pages where your search term was mentioned multiple times, it's sometimes impossible to find pages that are about your search term. The SearchSuggest script adds the list of best-matching pagenames to the results page.

Example

To understand the problem, go to the 24 wiki and search for Beau. There are - at the time of this writing - four pages with the word "Beau" in the page title:

Beau Bowden, Beau Dremann, Beau Smith, Beaumont

The fulltext search only finds the first of these.

And here's a screenshot of the results page with the best-matching pagenames added in:

File:SearchSuggest.jpg

Installation

See also: Help:JavaScript and CSS Cheatsheet

To install SearchSuggest, simply add the appropriate row to your importArticles() call in your global.js.

importArticles({
    type: 'script',
    articles: [
        'u:dev:SearchSuggest/code.js'
    ]
});

Localisation

Post translations on the talk page, please!

See Also

SearchGoButton