MediawikiExtensions/Interwiki

This will allow users to use an Something tag, which will produce a table with all links from the 'interwiki' mysql table with the attached Something as query string. A contribution to wikilandia networking.

setHook( "interwiki", "renderInterwiki" ); }

function renderInterwiki( $input ) {

$input = mysql_escape_string($input);

$count=0; $hd = mysql_connect("localhost", "wikiuser", "password") or die ("Unable to connect"); mysql_select_db ("wikidb", $hd) or die ("Unable to select database"); $res = mysql_query("SELECT * from interwiki", $hd) or die ("Unable to run query"); $output=" ";

return $output;

}

?>