Figlet Extension

Integrate figlet text into wiki pages using figletlink in a custom Mediawiki extension:

this is a first untestedversion with justmonkey knolage of how to make it work

Syntax
text

Example
moo

example Result

 * '_ ` _ \ / _ \ / _ \
 * | | | | | (_) | (_) |
 * _| |_| |_|\___/ \___/

(not installed on anything this is only beta i dont have figlet installed on this server)

Source
setHook( "figlet", "renderFiglet" ); }
 * 1) extension hook callback function

function renderFiglet( $input ) { global $wgOutputEncoding; # $input = mysql_escape_string($input); if (!$input) $input = "mu"; #ifno input then mu

$input =~ /[Aa-Zz]|[1-0]; $figlet = passthru('echo $input | /home/drowl/figlet/figlet -d /home/drowl/figlet/fonts'); $output="  "; $output.="$figlet"; $output.="  ";
 * 1) $input = mysql_escape_string($input);

return $output;

}

?>