Template:JADSCite: Difference between revisions

Created page with "<span style="line-height: 25px"> <!---->25px|alt=JADS|link= JADS message: “{{{message}}}” by [[{{{author}}}]] at {{#timel: c | @{{{time}}}. </span><noinclude> <templatedata> { "params": { "message": { "label": "Message", "description": "The text of the message.", "type": "string", "required": true }, "author": { "label": "Author", "description": "The author of the JADS message.", "required": true }, "time": { "l..."
 
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="line-height: 25px">
<span style="line-height: 25px">
<!---->[[File:Discord.svg|25px|alt=JADS|link=]] JADS message: “{{{message}}}” by [[{{{author}}}]] at {{#timel: c | @{{{time}}}.
<!---->[[File:Discord.svg|25px|alt=JADS|link=]] JADS message: [{{{1}}} “{{{message}}}” in {{{channel}}}] {{Attribution|{{{author}}}}}{{#if:{{{time|}}}|&nbsp;at {{Datetime|{{{time|}}}}}}}.
</span><noinclude>
</span><noinclude>
== Example ==
E.g:
  <nowiki>{{JADSCite|https://discord.com/channels/308515582817468420/666328917237563419/745829311428296785|message=Jom can go fuck himself. He's unfit to lead.|channel=#share-stuff-you-made|author=Joseph Anderson|time=@1597893540}}</nowiki>
{{JADSCite|https://discord.com/channels/308515582817468420/666328917237563419/745829311428296785|message=Jom can go fuck himself. He's unfit to lead.|channel=#share-stuff-you-made|author=Joseph Anderson|time=@1597893540}}
== Template Data ==
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {
"aliases": [
"url",
"link"
],
"label": "Link",
"description": "The link to the message.",
"example": "https://discord.com/channels/308515582817468420/...",
"type": "url",
"required": true
},
"message": {
"message": {
"label": "Message",
"label": "Message",
Line 14: Line 31:
"label": "Author",
"label": "Author",
"description": "The author of the JADS message.",
"description": "The author of the JADS message.",
"type": "string",
"required": true
"required": true
},
"channel": {
"label": "Channel",
"description": "The channel or thread the message was sent in",
"type": "string",
"suggested": true,
"suggestedvalues": [
"#general",
"#cringe-cafe",
"#dragons-den",
"Jenshin Den"
]
},
},
"time": {
"time": {
"label": "Time",
"label": "Time",
"description": "The timestamp the message was sent at.",
"description": "The timestamp the message was sent at. This can be a ISO 8601 (2025-01-25T06:11:03) or an @ then a UNIX timestamp (@1597893540)",
"type": "number",
"type": "string",
"suggested": true
"suggested": true
}
}
},
},
"description": "Cite a message in JADS.",
"description": "Cite a message in JADS.",
"format": "inline"
"format": "inline",
"paramOrder": [
"1",
"message",
"channel",
"author",
"time"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>