Extension:InlineEmoticons

Abstract: The InlineEmoticons extension allows adding smileys and emo icons to a wiki page.

Keywords: Emoticon MediaWiki Extension, Smiley MediaWiki Extension, Emoji MediaWiki Extension

Description
With a new tag you can enable small smileys and emo icons into a mediawiki webpage. The images are base64 encoded and put inline intor the wiki page <img style="[null vertical-align:bottom; height:1.8em; width:1.8em]" alt="[null Smiley]" src="[null data:image/png';base64,iVBORw0KGgoAAAANSUhEUgAAACwA]...'

With you can set a fix size. With you get the complete list of icons. With 001 you get a single icon. 001 is a smiley. There are some alias defined like



Bold textItalic text

Complete Icon List

 * Emoticons Part 1 with code
 * Emoticons Part 2 with code
 * Emoticons Part 3 with code

Install
1) Add a new directory to your extention directory called "InlineEmoticons"

2) Copy & Paste the code below to a new file called "InlineEmoticons.php"in this directory.

3) Add to LocalSettings.php this line at the ende: require_once("extensions/InlineEmoticons/InlineEmoticons.php");

4) Test it with a on a wiki page. You need to switch to wiki code or use 'special tag'-function.

Pro & Contra
Pro: Very easy to install - only one file! Will work with all mediawiki versions from 1.10.+ No reload of image files from server.

Contra: Each copy of the image is stored in wiki page. Thus ten emos needs space of ten images.

Code
\n";	} else {		$ret=Emos_outputImage($s,$timgw,$input);	}	return $ret;

}