Template:DiscordMessage: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
Use @mention to ping someone. | Use @mention to ping someone. | ||
|mentions= | |mentions=@test | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<includeonly><div class="discord-message" style="display: flex; margin: 0 0 | <includeonly><div class="discord-message" style="display: flex; margin: -1em 0 0 0; padding: 2em 1.3em 0.5em 1.1em; background: #36393f; border-radius: 4px; color: #dcddde; font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;"> | ||
<div class="avatar" style="margin-right: 1em;">[[File:{{{avatar}}}|50px|border-radius:50%;]]</div> | <div class="avatar" style="margin-right: 1em;">[[File:{{{avatar}}}|50px|border-radius:50%;]]</div> | ||
<div class="message-content" style="flex: 1;"> | <div class="message-content" style="flex: 1;"> | ||
| Line 18: | Line 18: | ||
</div> | </div> | ||
{{{content}}} | {{{content}}} | ||
{{#if:{{{mentions|}}}|{{#ifeq:{{{mentions}}}|None||<span style="background: rgba(88,101,242,0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px;">{{{mentions}}}</span>}}}} | {{#if:{{{mentions|}}}|{{#ifeq:{{{mentions}}}|None||<div><span style="background: rgba(88,101,242,0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px;">{{{mentions}}}</span></div>}}}} | ||
</div></div></includeonly> | </div></div></includeonly> | ||
<noinclude> | <noinclude> | ||
Latest revision as of 02:43, 12 April 2025
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| avatar | avatar | Name of the image file. | String | optional |
| username | username | Discord username | String | optional |
| timestamp | timestamp | no description | String | optional |
| content | content | no description | String | optional |
| mentions | mentions | Discord username | String | optional |