Discord is a script which allows you to integrate a custom Discord widget to your wiki for the sidebar, or for template use.
Installation
Template installation
Configuration
All the configuration for the sidebar widget for the footer text, heading, join message, theme, and role separation are stored on separate pages under the MediaWiki:Custom-Discord-
prefix. Only admins are allowed to edit these, so only they can customize how the sidebar widget works.
Below is a table with all the different MediaWiki pages for the sidebar, with the prefix omitted:
Option | Type | Affects | Default |
---|---|---|---|
id
|
Number | ID of the Discord server to be added in the sidebar If omitted, the rail module will not be added |
None |
header
|
String | The heading inserted before the widget | Community Chat |
footer
|
String | The text inserted next to the join button, only displayed if footer or guidelines are edited | By joining, you agree to the [$1 server guidelines] |
join
|
String | The text for the join button | Join Now! |
invite
|
String | The invite URL for the join button | Taken from widget data |
guidelines
|
String | The link passed as an argument to the footer message | None |
theme
|
dark , light , or auto
|
The theme of the widget, auto will match FandomDesktop theme
|
auto |
online
|
String | The text for members online | <strong>$1</strong> Users Online
|
users
|
String | The default role heading text | Users |
roles-* (Currently unsupported)[1] |
|||
order
|
Role names separated by commas | The order in which user groups display. Default role is always last. | None |
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 )
|
- ↑ 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 |
code.js • code.css |
1.2.0 | June 30, 2018 | Template substitution Support for pages that don't have a rail |
diff.js • diff.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.js • diff.css |
2.0.0 | February 20, 2019 | Cross wiki support Initial Dev Wiki publish |
code |
3.0.0 | February 21, 2019 | Rewrite I18n support |
diff |