Template:Chat: Difference between revisions

From VNDev Wiki
added {{{size}}} parameter with "small" size, to replace the former "large" parameter
smaller PFP and slightly larger margin around it, for ease of reading & vertical space saving
Line 1: Line 1:
<div style="display: flex; justify-content: flex-start; align-items: flex-start; flex-wrap: wrap;">
<div style="display: flex; justify-content: flex-start; align-items: flex-start; flex-wrap: wrap;">
<div style="flex-grow: 0; flex-wrap: wrap;" class="circular"><p style="margin:2px;">
<div style="flex-grow: 0; flex-wrap: wrap;" class="circular"><p style="margin:3px;">
{{#switch: {{{name|{{{1|}}}}}}
{{#switch: {{{name|{{{1|}}}}}}
| Plum|P = [[File:Plum PFP 2024.png|60px|alt=""]]
| Plum|P = [[File:Plum PFP 2024.png|50px|alt=""]]
| Lemon|Le = [[File:Lemon PFP 2024.png|60px|alt=""]]
| Lemon|Le = [[File:Lemon PFP 2024.png|50px|alt=""]]
| Cherry|C = [[File:Cherry PFP 2024.png|60px|alt=""]]
| Cherry|C = [[File:Cherry PFP 2024.png|50px|alt=""]]
| Lime|Li = [[File:Lime PFP 2024.png|60px|alt=""]]
| Lime|Li = [[File:Lime PFP 2024.png|50px|alt=""]]
| PD|Pd = [[File:Plum PFP Dogboy.png|60px|alt=""]]
| PD|Pd = [[File:Plum PFP Dogboy.png|50px|alt=""]]
| #default = {{#if:{{{image|}}} | [[{{{image}}}|60px|alt=""]] | }}
| #default = {{#if:{{{image|}}} | [[{{{image}}}|50px|alt=""]] | }}
}}<noinclude>[[File:Lime PFP 2024.png|60px|alt=""]]</noinclude></p>
}}<noinclude>[[File:Lime PFP 2024.png|50px|alt=""]]</noinclude></p>
</div>
</div>
<div style="flex-shrink: 0; flex-grow: 1; flex-wrap: wrap; padding-left: 1em; padding-right: 1em; padding-bottom: 1ex; max-width: 70%;">
<div style="flex-shrink: 0; flex-grow: 1; flex-wrap: wrap; padding-left: 1em; padding-right: 1em; padding-bottom: 1ex; max-width: 70%;">

Revision as of 11:55, 7 December 2024

""

Unknown User

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.

Template documentation

Example: {{Chat|name=Lemon|message=Is anyone here?}}

There's also abbreviations that can be used instead of the names:

  • Plum can be shorted to P.
  • Lemon can be shorted to Le.
  • Cherry can be shorted to C.
  • Lime can be shorted to Li.