Only you can help us build a free scout media repository!
Please create an account to start uploading your images now.

ScoutMedia:Implementing Scouting Dictionary

From ScoutMedia, the free scout media repository

To integrate Scouting Dictionary do this:

On server create file:

/path/to/mediawiki/htdocs/extensions/scoutDict.php

with this content:

<?php
  $wgExtensionFunctions[] = "wfScoutDict";

 function wfScoutDict() {
     global $wgParser;
     $wgParser->setHook( "scoutdict", "renderScoutDict" );
 }

 # The callback function for converting the input text to HTML output
 function renderScoutDict( $input, $argv ) {
     # $argv is an array containing any arguments passed to the extension like <example argument="foo" bar>..
     $output .= file_get_contents("http://www.partio.net/cgi-bin/dict/dict_malline.pl?term_id=$input");
     return $output;
 }
?>

And add end of LocalSettings.php this content:

#Extension for Scouting Dictionary
include('extensions/scoutDict.php');

To use Dictinary in pages use tag like this:

<scoutdict>22</scoutdict></nowiki>