Template:Chat: Difference between revisions

From VNDev Wiki
smaller PFP and slightly larger margin around it, for ease of reading & vertical space saving
added shortcut for Stella
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
| Lime|Li = [[File:Lime PFP 2024.png|50px|alt=""]]
| Lime|Li = [[File:Lime PFP 2024.png|50px|alt=""]]
| PD|Pd = [[File:Plum PFP Dogboy.png|50px|alt=""]]
| PD|Pd = [[File:Plum PFP Dogboy.png|50px|alt=""]]
| Stella|S = [[File:Stella PFP.png|50px|alt=""]]
| #default = {{#if:{{{image|}}} | [[{{{image}}}|50px|alt=""]] | }}
| #default = {{#if:{{{image|}}} | [[{{{image}}}|50px|alt=""]] | }}
}}<noinclude>[[File:Lime PFP 2024.png|50px|alt=""]]</noinclude></p>
}}<noinclude>[[File:Lime PFP 2024.png|50px|alt=""]]</noinclude></p>
Line 16: Line 17:
| Pd
| Pd
| Plum = <span style="color:purple">
| Plum = <span style="color:purple">
| S
| Stella
| Le
| Le
| Lemon = <span style="color:goldenrod">
| Lemon = <span style="color:goldenrod">
Line 31: Line 34:
| C = Cherry
| C = Cherry
| Li = Lime
| Li = Lime
| S = Stella
| #default = {{{name|{{{1|Unknown User}}}}}}
| #default = {{{name|{{{1|Unknown User}}}}}}
}}</strong></span></p>
}}</strong></span></p>
Line 42: Line 46:
| S
| S
| small = 0.8em;
| small = 0.8em;
}}">{{{message|{{{2|}}}}}}<noinclude>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tincidunt consectetur dolor non sodales. Sed egestas varius posuere. Aenean id accumsan risus, in aliquam odio. Praesent id nisl mi. Pellentesque eu tellus at diam suscipit accumsan.</noinclude></div>
}}">{{{message|{{{2|}}}}}}<noinclude>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tincidunt consectetur dolor non sodales. Sed egestas varius posuere.</noinclude></div>
</div>
</div>
</div><noinclude>
</div><noinclude>{{Template:Chat/doc}}</noinclude>
== Template documentation ==
Example: <code><nowiki>{{Chat|name=Lemon|message=Is anyone here?}}</nowiki></code>
 
There's also abbreviations that can be used instead of the names:
* [[Plum]] can be shorted to <code>P</code>.
* [[Lemon]] can be shorted to <code>Le</code>.
* [[Cherry]] can be shorted to <code>C</code>.
* [[Lime]] can be shorted to <code>Li</code>.
</noinclude>

Latest revision as of 05:39, 13 December 2024

""

Unknown User

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tincidunt consectetur dolor non sodales. Sed egestas varius posuere.

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 or P for Plum.
  • Lemon or Le for Lemon.
  • Cherry or C for Cherry.
  • Lime or Li for Lime.
  • PD for the dogboy version of Plum.
  • Stella or S 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:

""

Plum

This is a message!


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