Template:DiscordMessage: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
|username=Username | |username=Username | ||
|timestamp=01-Jan-21 12:00 AM | |timestamp=01-Jan-21 12:00 AM | ||
|content=Message content here. Use @mention to ping someone. | |content=Message content here. | ||
Use @mention to ping someone. | |||
|mentions=mention1#1234,mention2#5678 | |mentions=mention1#1234,mention2#5678 | ||
}} | }} | ||
| Line 15: | Line 17: | ||
<span class="timestamp" style="color: #72767d; font-size: 0.75em; margin-left: 0.5em;">{{{timestamp}}}</span> | <span class="timestamp" style="color: #72767d; font-size: 0.75em; margin-left: 0.5em;">{{{timestamp}}}</span> | ||
</div> | </div> | ||
<div class="content" style="white-space: pre-wrap;">{{{content}}} | <div class="content" style="white-space: pre-wrap; line-height: 1.4;">{{#tag:div|{{{content}}}|class=preserve-whitespace}}<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> | ||
Revision as of 16:04, 7 April 2025