Template:CiteDiscord: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
let's see how broken this initial version of the template is
 
No edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{author|}}} | {{{author}}}{{#if: {{{date|}}} | &nbsp;({{{date}}}) }}. }} {{#if: {{ChannelID|{{{channel|}}}}} | {{#if: {{{id|}}} | [https://discordapp.com/channels/357922255553953794/{{ChannelID|{{{channel}}}}}/{{{id}}} Message in #{{{channel}}}] | '''Error: Message ID required!''' }} | '''Error: Invalid channel name!'''}} on the Conwaylife Lounge Discord server</includeonly><noinclude>(documentation WIP) This is a template for including links to threads and individual posts on the '''[http://www.conwaylife.com/forums/ ConwayLife.com forums]''' in the "External Links" section of an article. It can take the following parameters:
<includeonly>{{#if: {{{author|}}} | {{{author}}}{{#if: {{{date|}}} | &nbsp;({{{date}}}) }}.&nbsp;}}{{#if: {{{id|}}} | {{#if: {{{channel|}}} | {{#if: {{ChannelID|{{{channel}}}}} | [https://discord.com/channels/357922255553953794/{{ChannelID|{{{channel}}}}}/{{{id}}} Message in #{{{channel}}}] | '''Error: Invalid channel name "{{{channel}}}". If message is located inside a thread, use ''thread'' and ''threadid'' parameters instead.'''}} | {{#if: {{{thread|}}} | {{#if: {{{threadid|}}} | [https://discord.com/channels/357922255553953794/{{{threadid}}}/{{{id}}} Message in thread "{{{thread}}}"] | '''Error: Either channel name or thread name+ID required!'''}} | '''Error: Either channel name or thread name+ID required!'''}} }} | '''Error: Message ID required!'''}} on the [[Conwaylife Lounge]] Discord server [[Category:Pages that link to the Conwaylife Lounge]]</includeonly><noinclude>This is a template for including links to messages on the '''[https://discord.gg/BCuYCEn Conwaylife Lounge]''' Discord server in the "References" section of an article. It can take the following parameters:


* ''channel'', the name of the channel the message was posted in:
* ''channel'', the name of the channel (excluding threads) the message was posted in, without the # sign:
** Options are ''starboard'', ''rules'', ''info'', ''announcements'', ''general-discussion'', ''off-topic'', ''tools'', ''cgol'', ''naturalistic'', ''synthetic'', ''general-theory'', ''other-math'', ''programming'', ''bots-and-mute-this'', and ''boice-text'';
** See [https://www.conwaylife.com/w/index.php?title=Template:ChannelID&action=edit here] for a list of options;
* ''thread'', the name of the thread the message was posted in, where applicable
* ''threadid'', the numerical ID of the thread, where applicable (this can be obtained clicking on the three dots to the right of the message, clicking "Copy Message Link", and copying the middle of the three numbers; it is also equal to the message ID of the first message in the thread)
* ''id'', the numerical ID of the message (this can be obtained by clicking on the three dots to the right of the message and clicking "Copy ID");
* ''id'', the numerical ID of the message (this can be obtained by clicking on the three dots to the right of the message and clicking "Copy ID");
* ''author'', the author of the thread or post (optional);
* ''author'', the author of the message (optional);
* ''date'', the date the forum post was posted (optional, if ''author'' is specified);
* ''date'', the date the message was posted (optional, if ''author'' is specified);


Here are three simple usage examples:
Here are four simple usage examples:


'''You type:'''
'''You type:'''


<tt><nowiki>{{LinkForumThread|t=1452|title=Soup search results}}</nowiki></tt>
<tt><nowiki>{{CiteDiscord|channel=cgol|id=700583344085139496}}</nowiki></tt>


'''You see:'''
'''You see:'''


* [http://www.conwaylife.com/forums/viewtopic.php?t=1452 Soup search results] (discussion thread) at the ConwayLife.com forums
[https://discord.com/channels/357922255553953794/370571014654001154/700583344085139496 Message in #cgol] on the [[Conwaylife Lounge]] Discord server


'''You type:'''
'''You type:'''


<tt><nowiki>{{LinkForumThread|p=46748|title=Re: Soup search results}}</nowiki></tt>
<tt><nowiki>{{CiteDiscord|thread=Life Miner|threadid=870565047947108373|id=870793282718957608}}</nowiki></tt>


'''You see:'''
'''You see:'''


* [http://www.conwaylife.com/forums/viewtopic.php?t=&p=46748#p46748 Re: Soup search results] (discussion thread) at the ConwayLife.com forums
[https://discord.com/channels/357922255553953794/870565047947108373/870793282718957608 Message in thread "Life Miner"] on the [[Conwaylife Lounge]] Discord server


'''You type:'''
'''You type:'''


<pre><nowiki><ref name="post46748" />
<tt><nowiki>{{CiteDiscord|author=Mateon1|date=April 17, 2020|channel=cgol|id=700583344085139496}}</nowiki></tt>
 
'''You see:'''
 
Mateon1 (April 17, 2020). [https://discord.com/channels/357922255553953794/370571014654001154/700583344085139496 Message in #cgol] on the [[Conwaylife Lounge]] Discord server
 
'''You type:'''
 
<pre><nowiki><ref name="message700583344085139496" />


==References==
==References==
<references>
<references>
<ref name="post46748">{{LinkForumThread
<ref name="message700583344085139496">{{CiteDiscord
|f      = 7
|author  = Mateon1
|t      = 2036
|date    = April 17, 2020
|p      = 46748
|channel = cgol
|title  = Re: Thread for basic questions
|id      = 700583344085139496
|format = ref
}}</ref>
}}</ref>
</references></nowiki></pre>
</references></nowiki></pre>
Line 42: Line 51:
'''You see:''' a footnote link<sup>1</sup> at the '''ref''' tag location, and a reference section containing
'''You see:''' a footnote link<sup>1</sup> at the '''ref''' tag location, and a reference section containing


1. [http://www.conwaylife.com/forums/viewtopic.php?f=7&t=2036&p=46748#p46748 Re: Thread for basic questions] (discussion thread) at the ConwayLife.com forums
1. Mateon1 (April 17, 2020). [https://discord.com/channels/357922255553953794/370571014654001154/700583344085139496 Message in #cgol] on the [[Conwaylife Lounge]] Discord server
 
==See also==
{{ListOfLinkTemplates}}


[[Category:Citation templates]]
</noinclude>
</noinclude>

Latest revision as of 18:03, 30 September 2021

This is a template for including links to messages on the Conwaylife Lounge Discord server in the "References" section of an article. It can take the following parameters:

  • channel, the name of the channel (excluding threads) the message was posted in, without the # sign:
    • See here for a list of options;
  • thread, the name of the thread the message was posted in, where applicable
  • threadid, the numerical ID of the thread, where applicable (this can be obtained clicking on the three dots to the right of the message, clicking "Copy Message Link", and copying the middle of the three numbers; it is also equal to the message ID of the first message in the thread)
  • id, the numerical ID of the message (this can be obtained by clicking on the three dots to the right of the message and clicking "Copy ID");
  • author, the author of the message (optional);
  • date, the date the message was posted (optional, if author is specified);

Here are four simple usage examples:

You type:

{{CiteDiscord|channel=cgol|id=700583344085139496}}

You see:

Message in #cgol on the Conwaylife Lounge Discord server

You type:

{{CiteDiscord|thread=Life Miner|threadid=870565047947108373|id=870793282718957608}}

You see:

Message in thread "Life Miner" on the Conwaylife Lounge Discord server

You type:

{{CiteDiscord|author=Mateon1|date=April 17, 2020|channel=cgol|id=700583344085139496}}

You see:

Mateon1 (April 17, 2020). Message in #cgol on the Conwaylife Lounge Discord server

You type:

<ref name="message700583344085139496" />

==References==
<references>
<ref name="message700583344085139496">{{CiteDiscord
|author  = Mateon1
|date    = April 17, 2020
|channel = cgol
|id      = 700583344085139496
}}</ref>
</references>

You see: a footnote link1 at the ref tag location, and a reference section containing

1. Mateon1 (April 17, 2020). Message in #cgol on the Conwaylife Lounge Discord server