{literal}
{if $message.type == $messageTypes.LEAVE || $message.type == $messageTypes.JOIN || $message.type == $messageTypes.ATTACHMENT} {/if}
{if $message.type != $messageTypes.INFORMATION} {if $message.type == $messageTypes.NORMAL || $message.type == $messageTypes.WHISPER} {@$message.avatar[32]} {else} {@$message.avatar[16]} {/if} {else} {/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} {else} {if $message.type == $messageTypes.ATTACHMENT && $message.attachment != null} {if parseInt($message.attachment.isImage) == 1} {lang}chat.message.{$messageTypes.ATTACHMENT}{/lang} {else} {lang}chat.message.{$messageTypes.ATTACHMENT}{/lang} {@$message.formattedMessage} {/if} {else} {@$message.formattedMessage} {/if} {/if}
{/literal}