Forum:LinkSuggest improved!

I'm glad to announce you an improvement to wikia's LinkSuggest (See Forum:Edit Page Enhancements). Because nobody wanted to listen us, I'd made an effort to fix those bugs/feature requests to make a really useful tool, that include:
 * Support for localized namespaces: All non-english wikias now could use links to Image:, Category:, etc namespaces referring them in its localized versions (for example, Imagen:, Categoría:, etc in Spansh, and so on)
 * Also a colon prepended to the link is also supported (for example: Image:Wiki.png or Category:Hubs )
 * Support for Template syntax .
 * Also, syntax is supported, and  template syntax is also supported.
 * Support for non-Ascii characters. Non-Ascii characters, when typed, make LinkSuggest to display no results. Now it's fixed!

To enable all those features on your wiki, paste the following code on the MediaWiki:Common.js page (or your local User:USERNAME/skinname.js for you): new code (old link)

In that code, change this to fit your wiki localization (it's the spanish translations, you must change them to your wiki's namespaces): ['Talk','Discusión'], ['User','Usuario'], ['User talk','Usuario Discusión'], ['Project','WikiDex'], ['Project talk','WikiDex Discusión'], ['Image','Imagen'], ['Image talk','Imagen Discusión'], ['MediaWiki','MediaWiki'], ['MediaWiki talk','MediaWiki Discusión'], ['Template','Plantilla'], ['Template talk','Plantilla Discusión'], ['Help','Ayuda'], ['Help talk','Ayuda Discusión'], ['Category','Categoría'], ['Category talk','Categoría Discusión']

Be aware of:
 * This code replaces some functions in the LinkSuggest by improved ones, but if wikia make ever a change on them, your code won't be updated, so you won't have fixes for it.
 * Anyway, it works for now, so who cares?

That would be best done on the server side, but nobody cared about us, so that's the only way to do that.

Any questions, problems? --Ciencia Al Poder (talk) -WikiDex 19:44, 22 October 2008 (UTC)

Comments
I should note, the techs are still working on LinkSuggest - they have done some work on the template support in the past few days, so you should see that show up. We are listening, it's just that the techs are busy people :) (I'll let them know about the other improvements, and thanks for spending time on it!) 20:03, 22 October 2008 (UTC)


 * Cool, after 5 months without a response, now are working on it. Well, the code is here. What are they waiting to apply it globally? They only need to copy & paste! --Ciencia Al Poder (talk) -WikiDex 20:19, 22 October 2008 (UTC)


 * ^_^ Now if LinkSuggest only worked with semantic attributes. ~ NOTASTAFF Daniel Friesen (DanTMan, Nadir Seen Fire) (talk) (tricks) (current topic) Oct 22, 2008 @ 22:12 (UTC)


 * It's really hard to copy that properly on the diff page. Ciencia, could you not put it on a sub page that would have been include in your js like we do for CSS ?
 * I gess not. After looking it a bit i saw it use the @import statement to import CSS.
 * Anyway, i'll go into the page code to try this on fr.guildwars and i hope subsequent edit did not altered it so it doesn't work on other projects. — TulipVorlax 12:16, 23 October 2008 (UTC)


 * Below the diff is the entire code. You should copy the code between  and   --Ciencia Al Poder (talk) -WikiDex 13:25, 23 October 2008 (UTC)


 * No is not :
 * http://img205.imageshack.us/img205/5541/screencapturedate231020vw7.png
 * Linked from ImageShack.
 * But i gess i cant blame you knowing it's a simple prefs... — TulipVorlax 18:37, 23 October 2008 (UTC)


 * Ok, sorry. The content is displayed by default on diffs unless you change it on preferences. I'd put the code here for your convenience. --Ciencia Al Poder (talk) -WikiDex 19:26, 23 October 2008 (UTC)


 * Again, LinkSuggest working on the upload media form would be fantastic. --LordTBT Talk! 05:17, 25 October 2008 (UTC)

Update: Ciencia's suggestions are still being worked upon, but there's a few bugs to be worked out before it goes live to site (on Windows, specifically). 09:56, 30 October 2008 (UTC)