Discord聊天室 源代码

注意


此页为于 SCP 维基内部使用的“组件”页。用于在其他页面中引用。

未经组件作者或工作人员允许,请勿修改此页的内容。


/*====================================================================
================来看看操作指南:=================
============discord-chat============
====================================================================*/

[!-- {$inc-source}
[[module CSS]]
@import url("https://scp-wiki.wdfiles.com/local--files/component:discord-chat-source/discord.css");
[[/module]]
[!----]

[!-- {$inc-start}
[[div_ class="discord"]]
    [[div_ class="messages-panel"]]
        [[div_ class="messages-group"]]
            [[div_ class="messages"]]
[!----]

[!-- {$inc-end}
            [[/div]]
        [[/div]]
    [[/div]]
[[/div]]
[!----]

[!-- {$inc-user}
[[module css]]
/* User 1 Messages Content */

.{$user-id} > .icon {
    background-image: url('{$usericon}');
}

.{$user-id} > .body > .userblock > .user-name {
    color: {$usercolor} !important;
}
[[/module]]
[!----]

[!-- {$inc-msg-start}
                [[div_ class="message {$user-id}"]]
                    [[div_ class="icon"]]
                    [[/div]]
                    [[div_ class="body"]]
                        [[div_ class="userblock"]]
                            [[div_ class="user-name"]]
                            {$username}
                            [[/div]]
                            [[div_ class="msg-time"]]
                            {$msg-time}
                            [[/div]]
                        [[/div]]
                        [[div_ class="content"]]
[!----]

[!-- {$inc-msg-end}
                        [[/div]]
                    [[/div]]
                [[/div]]
[!----]

[!-- {$inc-attch}
[[module css]]
/* {$attchname} Content */

.{$attch-id} .filenameLinkWrapper > .anchor {
    content: "{$attchname}";
}

.{$attch-id}.filenameLinkWrapper > .metadata {
    content: "{$attchsize}";
}

.{$attch-id} .icon-code {
    background-image: url("https://scp-wiki.wdfiles.com/local--files/component:discord-chat-source/file_icon.svg");
}
[[/module]]
                [[div_ class="message {$user-id} {$attch-id}"]]
                    [[div_ class="icon"]]
                    [[/div]]
                    [[div_ class="body"]]
                        [[div_ class="userblock"]]
                            [[div_ class="user-name"]]
                            {$username}
                            [[/div]]
                            [[div_ class="msg-time"]]
                            {$msg-time}
                            [[/div]]
                        [[/div]]
                        [[div_ class="attachment"]]
                            [[div_ class="icon-code"]]
                            [[/div]]
                            [[div_ class="attachmentInner"]]
                                [[div_ class="filenameLinkWrapper"]]
                                    [[a href="{$attchlink}"class="anchor"  rel="noreferrer noopener" target="_blank"]]{$attchname}[[/a]]
                                    [[div_ class="metadata"]]
                                    {$attchsize}
                                    [[/div]]
                                [[/div]]
                            [[/div]]
                            [[a class="anchor" href="{$attchlink}" target="_blank"]][[image https://scp-wiki.wdfiles.com/local--files/component:discord-chat-source/download-arrow.svg]][[/a]]
                        [[/div]]
                    [[/div]]
                [[/div]]
[!----]

[!-- {$inc-new-msgs}
[[div_ class="divider"]]
[[span class="dividerContent"]]New Messages[[/span]]
[[/div]]
[!----]
除非特别注明,本页内容采用以下授权方式: Creative Commons Attribution-ShareAlike 3.0 License