Extension:Link Suggest

Adding links to an article seems easy. But what happens when you dont know the exact capitalization, or wording of an article? Usually you open a new tab and do a search. This plugin adds a new button to the edit tool bar that when clicked, adds an ajax search bar to find links.

'''This plugin is in very beta, but I am putting it out here because I think it is usable, and it is as far as I can take it. I would love help on this to make it better.'''

Usage

 * Click on button
 * Type in search field (a list of available articles will appear)
 * Select the article you would like to link to.
 * That is all.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation

 * Create a new folder in your extensions called LinkSuggest
 * To install this extension, add the following to LocalSettings.php:


 * Ajax must also be enabled. This is the default from MediaWiki 1.11 to newer versions. For older versions of MediaWiki, you might need to add the following to LocalSettings.php:

A button called button_addlink.png must be in skins/common/images You can see mine here (it is oversized)

I know of some problems:
 * The added button in IE7 gets added to the beginning not h end of the buttons.
 * IE will lose track of your position when you select a link, so it will always place it at the begining.
 * Safari and FF do not have either of these issues.
 * I found this bugfix necessary before I got it working. The button is added to the left in FF too for me.

PHP
Copy the following, and save it in the LinkSuggest folder as LinkSuggest.php

See below for the CSS and javascript

JavaScript
Copy the following, and save it in the LinkSuggest folder as LinkSuggest.js

CSS
Copy the following, and save it in the searchsuggest folder as LinkSuggest.css (this can all be changed without issue on-wiki by editing your wiki's MediaWiki:Common.css)

Related extensions

 * FCKeditor - has a function similar to this extension.
 * QuickLink - refurbished and improved version of this extension.