Template:cite Discord: Difference between revisions
(Created page with "{{#if:{{{display name|}}}|{{{display name}}}{{#if:{{{username|}}}| [@{{{username}}}]}}|{{#if:{{{username|}}}|@{{{username}}}|{{Error|User not specified}}}}}} ({{#time:d F Y|@{{#expr:trunc({{#explode:{{{url}}}|/|-1}}/4194304000)+1420070400}}}}). [{{{url}}} {{{message type|Message}}} posted in the <code>#{{{channel}}}</code> {{{message type|channel}}} in the {{{server}}} Discord server].{{#if:{{{quote|}}} "{{{quote}}}".}} ''Discord''.{{#if:{{{retrieved|}}}| Retrieved {{{re...") |
No edit summary |
||
(16 intermediate revisions by 3 users not shown) | |||
Line 1:
{{cite web|url={{{url}}}|title={{#if:{{{
==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.
<pre>
<ref>{{cite Discord|url=|channel=|server=|author=|username=|access-date=|quote=}}</ref>
</pre>
If the message is within a thread, add this parameter: <code>|thread=</code>
To change the word "Message", add this parameter: <code>|message type=</code>
[[Category:Citation templates]]
===Template data===
<templatedata>
{
Line 5 ⟶ 19:
"username": {
"example": "sonjalang",
"type": "string",
"label": "Username",
"description": "Author's username",
"required": true
},
"server": {
"example": "{{tp|
"type": "string",
"required": true,
"label": "Server",
"description": "Title of the Discord server where the message was sent"
},
"channel": {
"example": "{{tok|pana-sona}}",
"type": "string",
"required": true,
"label": "Channel",
"description": "Title of the channel where the message was sent"
},
"quote": {
"example": "visually i resemble a deer",
"type": "
"suggested": true,
"
"description": "Specific quote to cite. If long, place in a separate blockquote after this template."
},
"url": {
"example": "
"type": "url",
"required": true,
"label": "URL",
"description": "Web address of the message you're citing. In the message's context menu, press Copy Message Link and paste this here."
},
"message type": {
"example": "Informal poll",
"default": "Message",
"type": "string",
"label": "Message type",
"description": "Noun to use instead of \"Message\""
},
"thread": {
"type": "string",
"suggested": true,
"label": "Thread",
"description": "Title of the thread where the message was sent, if applicable"
},
"author": {
"aliases": [
"name"
],
"label": "Author",
"description": "Author's Toki Pona name or legal name. Not always the same as their current Discord display name.",
"example": "{{tok|[[jan Sonja]]}}",
"type": "line",
"suggested": true
},
"access-date": {
"aliases": [
"retrieved"
],
"label": "Access date",
"description": "Full date when the message was accessed",
"example": "16 October 2023",
"type": "date",
"suggested": true
},
"title": {
"label": "Title",
"description": "Included for compatibility with {{cite web}}",
"type": "string",
"deprecated": "|message type=|thread=|channel=|server="
},
"date": {
"label": "Source date",
"description": "Included for compatibility with {{cite web}}",
"type": "date",
"deprecated": "Automatically calculated from the URL"
},
"website": {
"label": "Website name",
"description": "Included for compatibility with {{cite web}}",
"type": "string",
"default": "Discord",
"deprecated": true
},
"publisher": {
"label": "Publisher",
"description": "Included for compatibility with {{cite web}}",
"type": "string",
"deprecated": true
},
"trans-title": {
"label": "Translated title",
"description": "Included for compatibility with {{cite web}}",
"type": "string",
"deprecated": true
},
"language": {
"aliases": [
"lang"
],
"label": "Language",
"description": "Included for compatibility with {{cite web}}",
"type": "string",
"deprecated": true
},
"archive-url": {
"label": "Archive URL",
"description": "Included for compatibility with {{cite web}}",
"type": "url",
"deprecated": true
},
"archive-date": {
"label": "Archive date",
"description": "Included for compatibility with {{cite web}}",
"type": "date",
"deprecated": true
},
"delimiters": {
"label": "Delimiters",
"description": "Included for compatibility with {{cite web}}",
"type": "string",
"deprecated": true
}
},
"paramOrder": [
"
"username",
"date",
"url",
"
"message type",
"thread",
"channel",
"server",
"delimiters",
"trans-title",
"language",
"quote",
"
"
"
"archive-date",
"access-date"
],
"description": "Cites a Discord message"
}
</templatedata>
|
Latest revision as of 13:20, 1 February 2024
(Error: Invalid time.). [{{{url}}} [Message posted in the #{{{channel}}}
channel in the {{{server}}} Discord server]]. Discord.
Documentation[edit source]
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[edit source]
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 |