|
|
| Line 1: |
Line 1: |
| <includeonly>{{#if: {{{author|}}} | {{{author}}}{{#if: {{{date|}}} | ({{{date}}}) }}. }}{{#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: | | <includeonly>{{#switch: {{{position|right}}} |
| | | right = <div class="thumb tnone" style="float: right; {{{style|margin-left: 1em; margin-bottom: 1em;}}}"><div class="thumbinner"><div class="image">{{LV:Viewer|{{{rle|{{RLE:{{{pname}}}}}}}} |
| | {{LifeViewer config/default}} |
| | {{{viewerconfig|}}}}}</div><div class="thumbcaption">{{{caption|}}} (click above to open [[LifeViewer]]){{#if: {{{pname|}}} | <br>'''[[RLE]]:''' [https://www.conwaylife.com/patterns/{{{pname}}}.rle here] '''[[Plaintext]]:''' [https://www.conwaylife.com/patterns/{{{pname}}}.cells here] | }}{{#if: {{{apgcode|}}} | <br>{{LinkCatagolue|{{#explode:{{{apgcode}}}|/|0}}{{#if: {{#explode:{{{apgcode}}}|/|1}} | {{!}}rule={{#explode:{{{apgcode}}}|/|1}} | }}|style=brief}} | }}</div></div></div> |
| | | left = <div class="thumb tnone" style="float: left; {{{style|margin-right: 1em; margin-bottom: 1em;}}}"><div class="thumbinner"><div class="image">{{LV:Viewer|{{{rle|{{RLE:{{{pname}}}}}}}} |
| | {{LifeViewer config/default}} |
| | {{{viewerconfig|}}}}}</div><div class="thumbcaption">{{{caption|}}} (click above to open [[LifeViewer]]){{#if: {{{pname|}}} | <br>'''[[RLE]]:''' [https://www.conwaylife.com/patterns/{{{pname}}}.rle here] '''[[Plaintext]]:''' [https://www.conwaylife.com/patterns/{{{pname}}}.cells here] | }}{{#if: {{{apgcode|}}} | <br>{{LinkCatagolue|{{#explode:{{{apgcode}}}|/|0}}{{#if: {{#explode:{{{apgcode}}}|/|1}} | {{!}}rule={{#explode:{{{apgcode}}}|/|1}} | }}|style=brief}} | }}</div></div></div> |
| | | center = <table class="toccolours" style="margin-left: auto; margin-right: auto; width: fit-content; {{{style|}}}"><tr><td align="center">{{LV:Viewer|{{{rle|{{RLE:{{{pname}}}}}}}} |
| | {{LifeViewer config/default}} |
| | {{{viewerconfig|}}}}}</td></tr><tr><td align="center">{{{caption|}}} (click above to open [[LifeViewer]]){{#if: {{{pname|}}} | <br>'''[[RLE]]:''' [https://www.conwaylife.com/patterns/{{{pname}}}.rle here] '''[[Plaintext]]:''' [https://www.conwaylife.com/patterns/{{{pname}}}.cells here] | }}{{#if: {{{apgcode|}}} | <br>{{LinkCatagolue|{{#explode:{{{apgcode}}}|/|0}}{{#if: {{#explode:{{{apgcode}}}|/|1}} | {{!}}rule={{#explode:{{{apgcode}}}|/|1}} | }}|style=brief}} | }}</td></tr></table> |
| | }}{{#if: {{{pname|}}} | | {{#if:{{NAMESPACE}} | {{#ifeq:{{NAMESPACE}} | OCA | [[Category:Articles using EmbedViewer with no pname]] }} | [[Category:Articles using EmbedViewer with no pname]] }} }}</includeonly><noinclude> |
|
| |
|
| * ''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'', ''engineered'', ''general-theory'', ''other-math'', ''programming'', ''bots-and-mute-this'', and ''boice-text'';
| |
| * ''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 three simple usage examples:
| |
|
| |
| '''You type:'''
| |
|
| |
| <tt><nowiki>{{CiteDiscord|channel=cgol|id=700583344085139496}}</nowiki></tt>
| |
|
| |
| '''You see:'''
| |
|
| |
| [https://discord.com/channels/357922255553953794/370571014654001154/700583344085139496 Message in #cgol] on the [[Conwaylife Lounge]] Discord server
| |
|
| |
| '''You type:'''
| |
|
| |
| <tt><nowiki>{{CiteDiscord|thread=Life Miner|threadid=870565047947108373|id=870793282718957608}}</nowiki></tt>
| |
|
| |
| '''You see:'''
| |
|
| |
| [https://discord.com/channels/357922255553953794/870565047947108373/870793282718957608 Message in thread "Life Miner"] on the [[Conwaylife Lounge]] Discord server
| |
|
| |
| '''You type:'''
| |
|
| |
| <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>
| |
| <ref name="message700583344085139496">{{CiteDiscord
| |
| |author = Mateon1
| |
| |date = April 17, 2020
| |
| |channel = cgol
| |
| |id = 700583344085139496
| |
| }}</ref>
| |
| </references></nowiki></pre>
| |
|
| |
| '''You see:''' a footnote link<sup>1</sup> at the '''ref''' tag location, and a reference section containing
| |
|
| |
| 1. Mateon1 (April 17, 2020). [https://discord.com/channels/357922255553953794/370571014654001154/700583344085139496 Message in #cgol] on the [[Conwaylife Lounge]] Discord server
| |
| </noinclude> | | </noinclude> |