Extension:Skype


 * syntax:" "
 * available styles:add, chat, call, balloon, bigclassic, smallclassic, smallicon, mediumicon
 * available actions:add, chat, call
 * Skype Privacy: To enable your status to be shown online please select


 * Tools->Options->Privacy there is a button called "Allow my status to be shown on the web". Enable it

see Extension talk:Skype for help

setHook( "skype", "RenderSkype" ); }

// the function that reacts to " "

function RenderSkype( $input, $argv ) {

// set your defaults for the style and action (add, call or chat) (add, call, chat, ballon, bigclassic smallclassic, smallicon or mediumicon)

$style_default = "bigclassic" ; $action_default = "chat" ;

// the varibles are: $input

// test to see if the optinal elements of the tags are set and supported. if not set them to the defaults

if( isset( $argv['style'] ) ){ $style = $argv['style'] ; if ( ! in_array( $style, array( 'add', 'chat', 'call', 'balloon', 'bigclassic', 'smallclassic', 'smallicon', 'mediumicon') ) ){ $style = $style_default ; }       } else { $style = $style_default ; }

if( isset( $argv['action'] ) ){ $action = $argv['action'] ; if ( ! in_array( $action, array( 'add', 'chat', 'call') ) ){ $action = $action_default ; }       } else { $action = $action_default ; }

// set the url to the image and the stype of the image switch( $style ){

case "add": $image = '' ; break;

case "chat": $image = '' ; break;

case "call": $image = '' ; break;

case "balloon": $image = '' ; break;

case "bigclassic": $image = '' ; break;

case "smallclassic": $image = '' ; break; case "smallicon": $image = '' ; break; case "mediumicon": $image = '' ; break; }

// start the rendering the html outupt

$output = ''; $output .= ''; $output .= ' '; $output .= ''.$image.''; $output .= '';

// send the output to MediaWiki return $output; } ?>

Installation
Now you can use the extension with  Skype-Username  in the wiki
 * 1) Copy the code into a file (e.g. skype.php)
 * 2) Save the file in the extensions directory of your mediawiki folder
 * 3) Add the line   to the end of your LocalSettings.php file

Example
See an example of this add-on in action at: Cubic Path Wiki (run by the author of the AIM extension)