Template:Discord message: Difference between revisions
From Guild of Archivists
m (Trying to figure out a paragraph break problem) |
m (Still debugging) |
||
Line 1: | Line 1: | ||
'''{{{author}}}''' at {{#if:{{{url|}}}|[{{{url}}} {{{date|{{#time:F j, Y H:i:s|@{{#expr:floor({{#titleparts:{{{url}}}|1|-1}} / 4194304000) + 1420070400}}}} (UTC)}}}]|{{{date}}}}} in ''{{{channel}}}'' on ''{{{server}}}'':<blockquote>{{{text}}}</blockquote><noinclude><!-- | '''{{{author}}}''' at {{#if:{{{url|}}}|[{{{url}}} {{{date|{{#time:F j, Y H:i:s|@{{#expr:floor({{#titleparts:{{{url}}}|1|-1}} / 4194304000) + 1420070400}}}} (UTC)}}}]|{{{date}}}}} in ''{{{channel}}}'' on ''{{{server}}}'': | ||
<blockquote>{{{text}}}</blockquote><noinclude><!-- | |||
Discord's identifier numbers include a timestamp. The exact format is documented here: | Discord's identifier numbers include a timestamp. The exact format is documented here: | ||
https://discord.com/developers/docs/reference#snowflakes | https://discord.com/developers/docs/reference#snowflakes | ||
We extract this timestamp and use it to automatically fill out the message date/time. | We extract this timestamp and use it to automatically fill out the message date/time. | ||
-->{{documentation}}</noinclude> | -->{{documentation}}</noinclude> |
Latest revision as of 18:14, 4 May 2021
{{{author}}} at {{{date}}} in {{{channel}}} on {{{server}}}:
{{{text}}}
Template for formatting Discord messages with author, URL, etc. on reference pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Message URL | url | URL of the quoted Discord message.
| URL | suggested |
Author | author | The Discord username of the author of the message.
| String | required |
Message date and time | date | The time at which the message was sent. This time is automatically extracted from the message URL if possible, so usually it doesn't need to be set manually.
| String | optional |
Channel name | channel | The name of the channel in which the message was posted.
| String | required |
Server name | server | The name of the Discord server in which the message was posted.
| String | required |
Message text | text | The text content of the message.
| Content | required |
The above documentation is transcluded from Template:Discord message/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |