Phillapple (talk | contribs) m (pt 2) |
Phillapple (talk | contribs) m (caps) |
||
(32 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" |
{| class="wikitable" |
||
| [{{{messageURL}}} Discord message] from [{{#invoke:String|sub|{{{messageURL}}}|1|48}} {{{channelName}}}] On {{{date}}} |
|||
|+ [{{{link}}} Message link] |
|||
{{#ifeq: {{{edited}}} | true | |
|||
{{!}}- |
|||
{{!}} <i>Message has been edited.</i>| }} |
|||
|- |
|- |
||
| {{#if: {{{messageImg}}} | |
|||
Screenshot <div class="mw-collapsible mw-collapsed"> <br>[[File:{{{messageImg}}}|alt={{{transcript}}}|thumb]] | |
|||
{{{transcript}}} |
|||
}} |
|||
</div> |
</div> |
||
|- |
|||
| <div class="mw-collapsible mw collapsed">{{{messageImg}}}</div> |
|||
|} |
|} |
||
<noinclude> |
<noinclude> |
||
Line 12: | Line 16: | ||
{ |
{ |
||
"params": { |
"params": { |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
"messageImg": { |
"messageImg": { |
||
"aliases": [ |
"aliases": [ |
||
Line 29: | Line 22: | ||
"image" |
"image" |
||
], |
], |
||
"label": " |
"label": "Screenshot", |
||
"description": "Screenshot of the |
"description": "Screenshot of the image", |
||
"type": "wiki- |
"type": "wiki-file-name", |
||
" |
"example": "BobBobbington.png", |
||
"default": "Exact file name of the screenshot. Leave blank if none provided", |
|||
⚫ | |||
"autovalue": " ", |
|||
⚫ | |||
}, |
}, |
||
"transcript": { |
"transcript": { |
||
"aliases": [ |
"aliases": [ |
||
" |
"alt", |
||
"altText" |
|||
], |
], |
||
"label": "Transcript", |
"label": "Transcript", |
||
"description": "The |
"description": "The contents of the relevant messages", |
||
"example": "President Ryan says on May 6 2021: \"Anything but pineapples. And anchovies\"", |
"example": "President Ryan says on May 6 2021: \"Anything but pineapples. And anchovies\"", |
||
"type": "string", |
"type": "string", |
||
"autovalue": " ", |
|||
"required": true |
|||
⚫ | |||
"date": { |
|||
⚫ | |||
"messageDate" |
|||
⚫ | |||
"label": "Date", |
|||
⚫ | |||
"example": "2022-04-05 for 5 April, 2022", |
|||
"type": "date", |
|||
"required": true |
|||
}, |
|||
"channelName": { |
|||
"label": "Channel Name", |
|||
"description": "Name of the channel the message is from", |
|||
"example": "creative-chat; #creative-chat; Creative chat", |
|||
"type": "string", |
|||
"autovalue": "this channel", |
|||
"required": true |
|||
}, |
|||
"messageURL": { |
|||
"aliases": [ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
], |
|||
⚫ | |||
"description": "Link to the first of the included messages in Discord", |
|||
⚫ | |||
⚫ | |||
"required": true |
|||
}, |
|||
"edited": { |
|||
"label": "Edited?", |
|||
"description": "Does the message screenshotted have (edited) beside it?", |
|||
⚫ | |||
"type": "boolean", |
|||
"default": "false", |
|||
"autovalue": "false", |
|||
"required": true |
"required": true |
||
} |
} |
||
}, |
}, |
||
"description": "Standard way to cite from Discord, using a screenshot and a link.", |
"description": "Standard way to cite from Discord, using a screenshot and a link.", |
||
"format": "block", |
|||
"paramOrder": [ |
"paramOrder": [ |
||
" |
"messageURL", |
||
"transcript", |
|||
"date", |
|||
"edited", |
|||
"messageImg", |
"messageImg", |
||
" |
"channelName" |
||
] |
] |
||
} |
} |
Latest revision as of 03:34, 28 March 2024
[{{{messageURL}}} Discord message] from [[[Category:Errors reported by Module String]]String Module Error: String subset index out of range {{{channelName}}}] On {{{date}}} |
Screenshot [[File:{{{messageImg}}}|alt={{{transcript}}}|thumb]] |
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
Template:Documentation Subpage This is the Great Phermesia Wiki standard citation for Discord messages, most commonly for player-created lore. It creates a 2 by 1 or 3 by 1 table out of provided information.
Where to use[edit]
This template should be used for Discord messages used as sources for this wiki.
How to use[edit]
You must provide a link to the messages themselves in the Message URL parameter ({{{messageURL}}}
), the ({{{date}}}
of the messages, and an exact {{{transcript}}}
of the relevant passage of the message. It is suggested you also provide the name of the channel that the message is from.
If the message is edited, {{{edited}}}
should be set to true
.
Examples (source editor)[edit]
Without any parameters provided, as in{{DiscSource}}the template will transclude like this.
[{{{messageURL}}} Discord message] from [[[Category:Errors reported by Module String]]String Module Error: String subset index out of range {{{channelName}}}] On {{{date}}} |
Screenshot [[File:{{{messageImg}}}|alt={{{transcript}}}|thumb]] |
Yuck.
With the Bare Minimum required to not get an error, this is the result.
{{DiscSource | messageURL= https://discord.com/channels/810684927170707507/1099167536874016768/1099168028509339688 | date = 2023-04-21 | transcript = inso is very productive and useful 👍 | messageImg = }}
Discord message from this channel On 2023-04-21 |
inso is very productive and useful 👍 |
A blank space and "this channel" are the default values for {{{messageImg}}}
and {{{channelName}}}
respectively.
When we provide the template with more info, we get something like this. Let's also pretend, for a moment, that this message has been edited since.
{{DiscSource | messageURL= https://discord.com/channels/810684927170707507/1099167536874016768/1099168028509339688 | date = 2023-04-21 | transcript = inso is very productive and useful 👍 | messageImg = DiscSource example.png | channelName = #inso | edited = true }}
Discord message from #inso On 2023-04-21 |
Message has been edited. |
Screenshot |
The first thing you'll notice is the new expandable image element, which will replace the transcript if a screenshot of the message is provided. The old transcript is now the alt text of the image.
Standard way to cite from Discord, using a screenshot and a link.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Message URL | messageURL link message messageLink | Link to the first of the included messages in Discord
| URL | required |
Transcript | transcript alt altText | The contents of the relevant messages
| String | required |
Date | date messageDate | Date of the message being sent in YYYY-MM-DD
| Date | required |
Edited? | edited | Does the message screenshotted have (edited) beside it?
| Boolean | required |
Screenshot | messageImg img screenshot image | Screenshot of the image
| File | required |
Channel Name | channelName | Name of the channel the message is from
| String | required |