Template:Cite Discord: Difference between revisions
add date parameter |
parameter for message type |
||
| Line 1: | Line 1: | ||
{{#if:{{{date|}}}|{{#time:j F Y|{{{date}}}}}. }}[{{{url}}} | {{#if:{{{date|}}}|{{#time:j F Y|{{{date}}}}}. }}[{{{url}}} {{ucfirst:{{{message type|message}}}}} by {{{author}}}{{#if:{{{username|}}}| <nowiki>[@</nowiki>{{{username}}}<nowiki>]</nowiki>}}]{{#if:{{{channel|}}}|  in the <code>#{{{channel}}}</code> channel}} in the ''{{{server|9th Tail Bot Hub}}}'' server: {{#if:{{{quote|}}}|“{{{quote}}}”}} | ||
<noinclude> | <noinclude> | ||
| Line 59: | Line 59: | ||
"example": "2022-12-29", | "example": "2022-12-29", | ||
"suggested": true | "suggested": true | ||
}, | |||
"message type": { | |||
"description": "Noun to use instead of \"message\"", | |||
"example": "Reply to @user123", | |||
"aliases": [ | |||
"type" | |||
] | |||
} | } | ||
} | } | ||
Revision as of 21:29, 5 April 2024
[{{{url}}} Message by {{{author}}}] in the 9th Tail Bot Hub server:
Documentation
Cite a Discord message.
Examples
{{Cite Discord|author=Colon|channel=zoo-talk|quote=i added sex to quests|date=2022-12-29|url=//discord.com/channels/461575285364752384/1010033809250603068/1057800845518966835}}
becomes
29 December 2022. Message by Colon in the #zoo-talk channel in the 9th Tail Bot Hub server: “i added sex to quests”
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| author | author name | Display name of the message's author
| String | required |
| username | username | Username of the poster's message
| String | optional |
| channel | channel | Channel the message was posted in
| String | suggested |
| server | server | Server the message was posted in
| String | required |
| url | url | Permalink to the message (right click -> "Copy message link", then paste here)
| URL | required |
| quote | quote | Specific quote to cite. If long, place in a separate blockquote after this template.
| String | suggested |
| date | date | Date the message was posted
| Unknown | suggested |
| message type | message type type | Noun to use instead of "message"
| Unknown | optional |