Template:cite Discord: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{cite web|url={{{url}}}|title={{#if:{{{title|}}}|{{{title}}} <nowiki />}}<nowiki>[</nowiki>{{ucfirst:{{{message type|message}}}}} posted{{#if:{{{thread|}}}|<nowiki/> in the <code>#{{#replace:{{{thread}}}|#}}</code> thread}} in the <code>#{{#replace:{{{channel}}}|#}}</code> channel in the {{{server}}} Discord server<nowiki>]</nowiki>|trans-title={{{trans-title|}}}|language={{{lang|{{{language|}}}}}}|author={{{name|{{{author|}}}}}}|username=@{{#replace:{{{username}}}|@}}|date={{{date|@{{#expr:trunc({{#explode:{{{url}}}|/|-1}}/4194304000)+1420070400}}}}}|website={{{website|Discord}}}|publisher={{{publisher|}}}|archive-url={{{archive-url|}}}|archive-date={{{archive-date|}}}|access-date={{{retrieved|{{{access-date|}}}}}}|quote={{{quote|}}}}}<noinclude> |
{{cite web|url={{{url}}}|title={{#if:{{{title|}}}|{{{title}}} <nowiki />}}<nowiki>[</nowiki>{{ucfirst:{{{message type|message}}}}} posted{{#if:{{{thread|}}}|<nowiki/> in the <code>#{{#replace:{{{thread}}}|#}}</code> thread}} in the <code>#{{#replace:{{{channel}}}|#}}</code> channel in the {{{server}}} Discord server<nowiki>]</nowiki>|delimiters={{{delimiters|}}}|trans-title={{{trans-title|}}}|language={{{lang|{{{language|}}}}}}|author={{{name|{{{author|}}}}}}|username=@{{#replace:{{{username}}}|@}}|date={{{date|@{{#expr:trunc({{#explode:{{{url}}}|/|-1}}/4194304000)+1420070400}}}}}|website={{{website|Discord}}}|publisher={{{publisher|}}}|archive-url={{{archive-url|}}}|archive-date={{{archive-date|}}}|access-date={{{retrieved|{{{access-date|}}}}}}|quote={{{quote|}}}}}<noinclude> |
||
==Documentation== |
==Documentation== |
||
Line 134: | Line 134: | ||
"description": "Included for compatibility with {{cite web}}", |
"description": "Included for compatibility with {{cite web}}", |
||
"type": "date", |
"type": "date", |
||
"deprecated": true |
|||
}, |
|||
"delimiters": { |
|||
"label": "Delimiters", |
|||
"description": "Included for compatibility with {{cite web}}", |
|||
"type": "string", |
|||
"deprecated": true |
"deprecated": true |
||
} |
} |
||
Line 147: | Line 153: | ||
"channel", |
"channel", |
||
"server", |
"server", |
||
"delimiters", |
|||
"trans-title", |
"trans-title", |
||
"language", |
"language", |
Revision as of 03:48, 3 December 2023
[@{{{username}}}]. (Error: Invalid time.). [{{{url}}} [Message posted in the #{{{channel}}}
channel in the {{{server}}} Discord server]]. Discord.
Documentation
This template is a variant of Template:cite web for citing Discord messages. While all of the parameters for that template still work here, this version has more convenient parameters that can be used instead.
<ref>{{cite Discord|url=|channel=|server=|author=|username=|access-date=|quote=}}</ref>
If the message is within a thread, add this parameter: |thread=
To change the word "Message", add this parameter: |message type=
Template data
Cites a Discord message
Parameter | Description | Type | Status | |
---|---|---|---|---|
Author | author name | Author's Toki Pona name or legal name. Not always the same as their current Discord display name.
| Line | suggested |
Username | username | Author's username
| String | required |
Source date | date | Included for compatibility with {{cite web}} | Date | deprecated |
URL | url | Web address of the message you're citing. In the message's context menu, press Copy Message Link and paste this here.
| URL | required |
Title | title | Included for compatibility with {{cite web}} | String | deprecated |
Message type | message type | Noun to use instead of "Message"
| String | optional |
Thread | thread | Title of the thread where the message was sent, if applicable | String | suggested |
Channel | channel | Title of the channel where the message was sent
| String | required |
Server | server | Title of the Discord server where the message was sent
| String | required |
Delimiters | delimiters | Included for compatibility with {{cite web}} | String | deprecated |
Translated title | trans-title | Included for compatibility with {{cite web}} | String | deprecated |
Language | language lang | Included for compatibility with {{cite web}} | String | deprecated |
Quote | quote | Specific quote to cite. If long, place in a separate blockquote after this template.
| Line | suggested |
Website name | website | Included for compatibility with {{cite web}}
| String | deprecated |
Publisher | publisher | Included for compatibility with {{cite web}} | String | deprecated |
Archive URL | archive-url | Included for compatibility with {{cite web}} | URL | deprecated |
Archive date | archive-date | Included for compatibility with {{cite web}} | Date | deprecated |
Access date | access-date retrieved | Full date when the message was accessed
| Date | suggested |