function efSWMPRenderSignSeq($input, $args, $parser)
{
    global $wgScriptPath;
    $output = '<table border="1" cellpadding="5">' . "\n";
    $input = bsw2iswa($input);
    $seq = str_split($input, 9);
    foreach ($seq as $bsw) {
        $output .= '<tr><td>';
        $output .= '<img src="' . $wgScriptPath . '/extensions/swmp/swis/glyph.php?bsw=' . $bsw . '&size=.7&line=999999">' . "\n";
        $output .= '</td></tr>' . "\n";
    }
    $output .= '</table>' . "\n";
    return $output;
}
    }
} else {
    //build extra attributes
    $extra = '';
    if ($size) {
        $extra .= '&size=' . $size;
    }
    if ($colorize) {
        $extra .= '&colorize=1';
    } else {
        $extra .= '&line=' . $line;
    }
    $extra .= '&fill=' . $fill;
    $extra .= '&back=' . $back;
    if ($view) {
        $chars = str_split(bsw2iswa($bsw), 9);
        $chars = array_unique($chars);
        sort($chars, SORT_STRING);
        $syms = array();
        foreach ($chars as $bsw) {
            $base = substr($bsw, 0, 3);
            $syms[$base][] = $bsw;
        }
        foreach ($syms as $base => $chars) {
            $bs_id = $iswa->key2id(bsw2key($base), 4);
            echo '<h1>' . $msg['iswa_' . $bs_id] . ' <img src="glyph.php?key=' . base2view($base) . $extra . '">' . '</h1>';
            foreach ($chars as $bsw) {
                echo '<img src="glyph.php?bsw=' . $bsw . $extra . '&name=' . bsw2key($bsw) . '"> ';
            }
        }
    }