At the start of a normal line or a line indented with ":" characters, this produces:
Username:
At the end of a line, the username is enclosed with brackets to make a wiki link, like this:
-- Username
Elsewhere, the user name is just added with italic tags either side.
If the writer has no username, they are signed as "Guest".
This patch is in use on Unreal Wiki -- Tarquin
$string .= "\n" if (!($string =~ /\n$/));
) and add the following lines under line 3918:
# tarq: user signoff { my $signature = &GetParam("username", ""); my $linkedsig = "[[$signature]]"; if ( $signature eq "" ) { $signature = "Guest" ; $linkedsig = "''Guest''"; } for ( $string ) { s[ ^(:*)\s*~~~ ][\n$1'''$signature:''' ]xmg; s[ ~~~\s*$ ][ -- $linkedsig ]xmg; s[ ~~~ ][ '''$signature''' ]xg; s[ /me (?!\w) ]['''$signature''']xg; # You may want to comment out this one. } }