Template:cite Discord: Difference between revisions

From sona pona, the Toki Pona wiki
Content added Content deleted
(fix quote)
No edit summary
Line 1: Line 1:
{{#if:{{{name|}}}|{{{name}}}{{#if:{{{username|}}}|<nowiki/> [@{{{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|}}}|<nowiki/> "{{{quote}}}".}} ''Discord''.{{#if:{{{retrieved|}}}|<nowiki/> Retrieved {{{retrieved}}}.}}<noinclude>
{{#if:{{{name|}}}|{{{name}}}{{#if:{{{username|}}}|<nowiki/> [@{{{username}}}]}}|{{#if:{{{username|}}}|@{{{username}}}|{{Error|User not specified}}}}}} ({{#time:d F Y|@{{#expr:trunc({{#explode:{{{url}}}|/|-1}}/4194304000)+1420070400}}}}). [{{{url}}} {{{message type|Message}}}] posted{{#if:{{{thread|}}}|<nowiki/> in the <code>#{{{thread}}}</code> thread}} in the <code>#{{{channel}}}</code> channel in the {{{server}}} Discord server.{{#if:{{{quote|}}}|<nowiki/> "{{{quote}}}".}} ''Discord''.{{#if:{{{retrieved|}}}|<nowiki/> Retrieved {{{retrieved}}}.}}<noinclude>
<templatedata>
<templatedata>
{
{
Line 34: Line 34:
"type": "url",
"type": "url",
"required": true
"required": true
},
"channel type": {
"example": "thread",
"default": "channel"
},
},
"message type": {
"message type": {
"example": "Informal poll",
"example": "Informal poll",
"default": "Message"
"default": "Message"
},
"thread": {
"type": "string",
"suggested": true
}
}
},
},
Line 50: Line 50:
"server",
"server",
"channel",
"channel",
"thread",
"quote",
"quote",
"retrieved",
"retrieved",
"message type",
"message type"
"channel type"
]
]
}
}

Revision as of 09:28, 17 October 2023

User not specified (Error: Invalid time.). [{{{url}}} Message] posted in the #{{{channel}}} channel in the {{{server}}} Discord server. Discord.

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
namename

no description

Example
{{tok|[[jan Sonja]]}}
Stringrequired
usernameusername

no description

Example
sonjalang
Stringoptional
urlurl

no description

Example
https://discord.com/channels/301377942062366741/301378960468738050/805912264334508132
URLrequired
serverserver

no description

Example
{{tp|[[ma pona pi toki pona]]}}
Stringrequired
channelchannel

no description

Example
pana-sona
Stringrequired
threadthread

no description

Stringsuggested
quotequote

no description

Example
visually i resemble a deer
Stringoptional
retrievedretrieved

no description

Example
16 October 2023
Dateoptional
message typemessage type

no description

Default
Message
Example
Informal poll
Unknownoptional