Template:Chat/doc: Difference between revisions
m →Usage: image syntax clarification |
m →Usage: documented Stella's shortcut |
||
Line 18: | Line 18: | ||
* <code>Lime</code> or <code>Li</code> for [[Lime]]. | * <code>Lime</code> or <code>Li</code> for [[Lime]]. | ||
* <code>PD</code> for the dogboy version of Plum. | * <code>PD</code> for the dogboy version of Plum. | ||
* <code>Stella</code> or <code>S</code> for [[Stella]] | |||
If <code>name</code> and/or <code>message</code> are unspecified, the first and second unlabeled parameters (respectively) will be used instead. This allows quicker use, especially if combined with shortcuts. For example: | If <code>name</code> and/or <code>message</code> are unspecified, the first and second unlabeled parameters (respectively) will be used instead. This allows quicker use, especially if combined with shortcuts. For example: |
Latest revision as of 05:40, 13 December 2024
This template emulates the appearance of a Discord chat message. It is heavily used in List of DevTalk daily message skits.
Usage
{{chat | name = <!-- A string, or a shortcut (see below); the name of the user sending the message --> | message = <!-- A string; message content. Multiple messages in a row can be separated using <br />--> | 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 --> }}
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).
Plum
orP
for Plum.Lemon
orLe
for Lemon.Cherry
orC
for Cherry.Lime
orLi
for Lime.PD
for the dogboy version of Plum.Stella
orS
for Stella
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:
When adding emoji, image files may be inserted directly within the message field.
For example: [[File:PainLemon.png|25px|alt="Pain Lemon emoji"]]
The following sizes are recommended to emulate Discord behavior:
- 50px for one to three emoji with no text in the same line
- 25px for emoji with text on one or both sides, or for a series of four or more emoji
- 18px for emoji in a message with
size = small
or equivalent