A message with a variable:
Hello, {$username}!
A message with an annotated variable:
{#input $date :datetime month=long day=numeric}
Today is {$date}.
A multi-variant message with one selector:
{#match {$count :plural}}
{#when 1} You have one new message.
{#when *} You have {$count} new messages.
A multi-variant message with two selectors:
{#input $invites :number maxFracDigits=0}
{#match {$invites :number} {$responses :number}}
{#when 0 *} You sent no invites.
{#when one 0} You sent {$invites} invite and received no responses.
{#when one one} You sent {$invites} invite and received {$responses} response.
{#when one *} You sent {$invites} invite and received {$responses} responses.
{#when * 0} You sent {$invites} invites and received no responses.
{#when * one} You sent {$invites} invites and received {$responses} response.
{#when * *} You sent {$invites} invites and received {$responses} responses.
Same as above, but written on a single line:
{#input $invites :number maxFracDigits=0} {#match {$invites :number} {$responses
:number}} {#when 0 *} You sent no invites. {#when one 0} You sent {$invites} invite
and received no responses. {#when one one} You sent {$invites} invite and received
{$responses} response. {#when one *} You sent {$invites} invite and received
{$responses} responses. {#when * 0} You sent {$invites} invites and received no
responses. {#when * one} You sent {$invites} invites and received {$responses}
response. {#when * *} You sent {$invites} invites and received {$responses}
responses.