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

Example
moo

example Result

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

test Result
moo

(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
 * 1) install parser hook for tags

function renderFiglet( $input ) { global $wgOutputEncoding; $input = mysql_escape_string($input); $input = escapeshellarg($input);

$output=" "; \\$output.=`figlet $input`; $output.=exec("figlet " . escapeshellarg($input)); $output.=" ";

return $output; }

?>

not installed yet, see ongoing talk.