Fandom Developers Wiki
Advertisement

Discord是一个可让您将自定义Discord小部件使用到wiki的侧栏或模板中的脚本。

安装[]

模板安装[]

配置[]

侧栏小部件(脚注文本、标题、加入消息、角色分组)的所有配置都存储在以MediaWiki:Custom-Discord-为前缀下的单独页面上。由于其页面只允许管理员进行编辑,所以只有管理员才能自定义侧栏小部件的工作方式。

下表列出了省略其前缀的侧栏小部件的所有不同MediaWiki页面:

选项 类型 作用 默认
id 数字 要添加到侧栏中的Discord服务器ID
如果省略,则小部件不会添加到侧栏中
header 字符串 在小部件前插入的标题 社区聊天
footer 字符串 在加入按钮旁边插入的文本。只有在编辑脚注文本后才会显示 加入即表示您同意[$1 服务器准则]
join 字符串 加入按钮的文本 立即加入!
invite 字符串 加入按钮的邀请网址 取自小部件数据
guidelines 字符串 作为参数传递给脚注消息的链接
theme dark(深色)或light(明亮) 小部件的主题 light(明亮)
online 字符串 在线用户的文本 <strong>$1</strong>个在线用户
users 字符串 默认角色标题文本 用户
roles-*
(Currently unsupported)[1]
带有Discord用户ID的组列表页面 小部件的用户分组行为
order 角色名称以逗号分隔 用户组的显示顺序。默认角色将最后显示。
branding The Discord branding to use, old or new The colors and the logo used for the widget old (with no plans of switching to new)
  1. Footnote: Owing to Discord API changes, the role grouping feature roles-* is no longer supported, and the displayed roster is capped to 100 members.

Changelog[]

Version Date Description Diff
1.0.0-1.1.0 June 14, 2018 Initial revision.

Custom Wikia rail module support
Rounded avatars for users
Chip view for usernames on hover
Wikia rail button style for join button
Wider scrollbar and custom color

code.jscode.css
1.2.0 June 30, 2018 Template substitution

Support for pages that don't have a rail

diff.jsdiff.css
1.3.0-1.5.0 August 30, 2018 - February 17, 2019 Improvements and fixes to join button for consistency with the Wikia rail button style

Wiki specific changes

diff.jsdiff.css
2.0.0 February 20, 2019 Cross wiki support

Initial Dev Wiki publish

code
3.0.0 February 21, 2019 Rewrite

I18n support
Bug fixes

diff
Advertisement