Template:DiscordMessage: Difference between revisions

From ServantPedia™, the paid (but reliable) encyclopedia
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.
|content=Message content here. Use @mention to ping someone.  
Use @mention to ping someone. |mentions=mention1#1234,mention2#5678
|mentions=mention1#1234,mention2#5678
}}
}}
</noinclude>
</noinclude>
Line 15: Line 15:
<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;">{{#replace:{{{content}}}|@{{{mentions}}}|<span style="background: rgba(88,101,242,0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px;">@$1</span>}}</div>
<div class="content" style="white-space: pre-wrap;">{{{content}}}<br>@{{{mentions}}}|<span style="background: rgba(88,101,242,0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px;">@$1</span></div>
</div></div></includeonly>
</div></div></includeonly>

Revision as of 15:53, 7 April 2025


border-radius:50%;

Username 01-Jan-21 12:00 AM

Message content here. Use @mention to ping someone.
@mention1#1234,mention2#5678|@$1