--- CharInsert.php 2010-06-24 16:19:27.000000000 +0000 +++ CharInsert.php-new 2010-06-24 16:21:39.000000000 +0000 @@ -43,7 +43,9 @@ $wgParser->setHook( 'charinsert', 'charInsert' ); } -function charInsert( $data ) { +function charInsert( $data, $args ) { + global $charInsertArgs; + $charInsertArgs = $args; return implode( "
\n", array_map( 'charInsertLine', explode( "\n", trim( $data ) ) ) ); @@ -83,7 +85,10 @@ function charInsertChar( $start, $end = '', $title = null ) { $estart = charInsertJsString( $start ); $eend = charInsertJsString( $end ); - if( $eend == '' ) { + global $charInsertArgs; + if( $charInsertArgs and array_key_exists('label', $charInsertArgs) ) { + $inline = $charInsertArgs['label']; + } else if( $eend == '' ) { $inline = charInsertDisplay( $start ); } else { $inline = charInsertDisplay( $start . $end );