Template:Chat
Unknown User
This template emulates the appearance of a Discord chat message. It is heavily used in List of DevTalk daily message skits.
Basic Usage
{{chat
| name = <!-- A string, or a shortcut (see below); the name of the user sending the message -->
| message = <!-- A string; message content. -->
| image = <!-- Profile picture. Enter as File:x.png without [[ ]]. -->
| color = <!-- Optional: Color to apply to the name. Default black -->
| size = <!-- Optional: Adjust the size of the message text. Use l, L, large, s, S, or small -->
}}
If name and/or message are unspecified, the first and second unlabeled parameters (respectively) will be used instead. This allows quicker use, especially if combined with shortcuts. For example:
{{chat|P|This is a message!}}
will produce:
Shortcuts
Shortcuts are supported for the DevTalk mascots. When name is one of these values, image and color will be automatically populated. Shortened versions of the mascots' names entered for the name field will also be replaced by the full name (ex. P becomes Plum).
PlumorPfor Plum.LemonorLefor Lemon.CherryorCfor Cherry.LimeorLifor Lime.PDfor the dogboy version of Plum.StellaorSfor Stella.BossorBfor "Boss" (Stella).
Multi-line messages
The template also has support for messages with several lines. (In Discord, these are actually multiple message sent by the same user in succession.) The size of each line can be specified individually.
{{chat
| <!-- Unlabeled name parameter -->
| message1 =
| message2 =
| message3 =
...
| message15 =
| size1 =
| size2 =
| size3 =
...
| size15 =
}}
For messagex parameters, the parameter name can be omitted. If this is done, unnamed parameters will be used in order (allowing for the name as the first unlabeled parameter).
message1 and size1 can be replaced with message and size if desired.
Skipping message numbers (e.g. specifying message3 but not message2) is not supported.
Emoji
Template:Emoji is designed to work with this template. See that page's documentation for usage.
| The above documentation is transcluded from Template:Chat/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |