{literal} {if $message.type == $messageTypes.LEAVE || $message.type == $messageTypes.JOIN}
{/if}
{if $message.type != $messageTypes.INFORMATION} {if $message.type == $messageTypes.NORMAL || $message.type == $messageTypes.WHISPER || $message.type == $messageTypes.ATTACHMENT} {@$message.avatar[32]} {else} {@$message.avatar[16]} {/if} {else} {/if}
{if $message.type == $messageTypes.ATTACHMENT} {/if}
{if ($message.type == $messageTypes.WHISPER && $message.sender == WCF.User.userID) || $message.type != $messageTypes.WHISPER} {@$message.formattedUsername} {else} {$message.additionalData.receiverUsername} {/if} {if $message.type == $messageTypes.WHISPER} {if ($message.type == $messageTypes.WHISPER && $message.sender == WCF.User.userID) || $message.type != $messageTypes.WHISPER} {$message.additionalData.receiverUsername} {else} {@$message.formattedUsername} {/if} {/if} {if $message.type == $messageTypes.NORMAL || $message.type == $messageTypes.WHISPER || $message.type == $messageTypes.ATTACHMENT} {if $message.type == $messageTypes.ATTACHMENT}{lang}chat.message.{$messageTypes.ATTACHMENT}{/lang}{/if} {else} {@$message.formattedMessage} {/if}
{/literal}