Template:Cite Discord: Difference between revisions
parameter for message type |
mNo edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#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:{{{date|}}}|{{#time:j F Y|{{{date}}}}}. }}[{{{url}}} {{ucfirst:{{{message type|{{{type|message}}}}}}}} by {{{author|{{{name}}}}}}{{#if:{{{username|}}}| <nowiki>[@</nowiki>{{{username}}}<nowiki>]</nowiki>}}]{{#if:{{{thread|}}}| in the “{{{thread}}}” thread}}{{#if:{{{channel|}}}|  in the <code>#{{{channel}}}</code> channel}} in the ''{{{server|9th Tail Bot Hub}}}'' server{{#if:{{{quote|{{{text|}}}}}}|<nowiki>: </nowiki><p>“{{{quote|{{{text}}}}}}”</p>|.}} | ||
<noinclude> | <noinclude> | ||
| Line 6: | Line 6: | ||
===Examples=== | ===Examples=== | ||
< | <syntaxhighlight lang="wikitext">{{Cite Discord|author=Colon|channel=zoo-talk|quote=i added sex to quests|date=2022-12-29|url=//discord.com/channels/461575285364752384/1010033809250603068/1057800845518966835}}</syntaxhighlight> | ||
becomes | becomes | ||
| Line 53: | Line 53: | ||
"example": "i added sex to quests", | "example": "i added sex to quests", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true, | ||
"aliases": [ | |||
"text" | |||
] | |||
}, | }, | ||
"date": { | "date": { | ||
| Line 62: | Line 65: | ||
"message type": { | "message type": { | ||
"description": "Noun to use instead of \"message\"", | "description": "Noun to use instead of \"message\"", | ||
"example": " | "example": "JSON snippet, Item use dialogue", | ||
"aliases": [ | "aliases": [ | ||
"type" | "type" | ||
] | ] | ||
}, | |||
"thread": { | |||
"description": "Thread the message was posted in (if applicable)", | |||
"example": "Fanmade items" | |||
} | } | ||
} | }, | ||
"paramOrder": [ | |||
"author", | |||
"username", | |||
"thread", | |||
"channel", | |||
"server", | |||
"url", | |||
"date", | |||
"quote", | |||
"message type" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Citation templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 14:51, 15 May 2024
[{{{url}}} Message by {{{name}}}] in the 9th Tail Bot Hub server.
Documentation[edit source]
Cite a Discord message.
Examples[edit source]
{{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 |
| thread | thread | Thread the message was posted in (if applicable)
| Unknown | 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 |
| date | date | Date the message was posted
| Unknown | suggested |
| quote | quote text | Specific quote to cite. If long, place in a separate blockquote after this template.
| String | suggested |
| message type | message type type | Noun to use instead of "message"
| Unknown | optional |