Figlet Extension

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

this is a first untested version with just monkey knolage of how to make it work

Syntax
text (default font=standard)

text (set another font)

$fonts (show font list)

$self (special for template usage, $self=pagename)

Example
moo

example Result

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

test Result
`cat /etc/passwd`

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

Source
setHook( "figlet", "renderFiglet" ); }	function renderFiglet( $input ) { global $wgOutputEncoding; $input = mysql_escape_string($input); $output=" "; $output.=shell_exec("figlet " . escapeshellarg($input)); $output.="&#60;&#47;&#112;&#114;&#101;&#62;"; return $output; }	?>

not installed yet, see ongoing talk.