Template:cite Discord: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 1:
{{#if:{{{name|}}}cite web|url={{{nameurl}}}{{#if:{{{username|}}}|<nowiki/> [@{{{username}}}]}}|title={{#if:{{{usernametitle|}}}|@{{{usernametitle}}}|{{Error|User not<nowiki specified}}}}}} ({{#time:d F Y|@{{#expr:trunc({{#explode:{{{url}}}|/|-1>}}<nowiki>[</4194304000)+1420070400}}}}). [nowiki>{{{url}}} [ucfirst:{{{message type|Messagemessage}}}}} 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={{#if:{{{quoteusername|}}}|<nowiki/> "@{{#replace:{quote{{username}}}".|@}} ''Discord''.}}|date={{{date|@{{#ifexpr:trunc({{#explode:{retrieved|{{url}}}|<nowiki/> Retrieved |-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==
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 6 ⟶ 20:
"example": "sonjalang",
"type": "string",
"suggested": true,
"label": "Username",
"description": "SpeakerAuthor's username (without @ symbol)",
"required": true
},
"name": {
"example": "{{tok|[[jan Sonja]]}}",
"type": "string",
"required": true,
"label": "Name",
"description": "Speaker's Toki Pona name or legal name (not always the same as Discord display name)"
},
"server": {
"example": "{{tp|[[ma pona pi toki pona]]}}",
"type": "string",
"required": true,
"label": "Server",
"description": "NameTitle of the Discord server where the message was sent"
},
"channel": {
"example": "{{tok|pana-sona}}",
"type": "string",
"required": true,
"label": "Channel",
"description": "NameTitle of the channel (withoutwhere the message #was symbol)sent"
},
"quote": {
"example": "visually i resemble a deer",
"type": "stringline",
"suggested": true,
"label": "Quote",
"description": "RelevantSpecific partquote ofto messagecite. (ifIf long, place in a separate paragraphblockquote after this template)."
},
"retrieved": {
"example": "16 October 2023",
"type": "date",
"suggested": true,
"label": "Retrieval date",
"description": "Date the citation was added"
},
"url": {
"example": "https://discord.com/channels/301377942062366741/301378960468738050/805912264334508132",
"type": "url",
"required": true,
"label": "URL",
"description": "LinkWeb toaddress of the message you're citing. In the message's context menu, press Copy Message Link and paste this here."
},
"message type": {
Line 57:
"type": "string",
"label": "Message type",
"description": "Noun to use instead of \"Message\", first letter uppercase"
},
"thread": {
Line 63:
"suggested": true,
"label": "Thread",
"description": "NameTitle 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": [
"nameauthor",
"username",
"date",
"url",
"servertitle",
"channelmessage type",
"thread",
"channel",
"server",
"delimiters",
"trans-title",
"language",
"quote",
"retrievedwebsite",
"message typepublisher",
"archive-url",
"archive-date",
"access-date"
],
"description": "Use in a <ref> tag to citeCites a Discord message. The message date will automatically be calculated from the link."
}
</templatedata>