Fandom Developers Wiki

Discord is a script which allows you to integrate a custom Discord widget to your wiki for the sidebar, or for template use.


Template installation


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
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
(Currently unsupported)[1]
Pages with a list of Discord user IDs grouped together The widget's user grouping behavior None
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)
  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.


1.0.0-1.1.0 (2018-06-14 • code.jscode.css)
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
1.2.0 (2018-06-30 • diff.jsdiff.css)
Template substitution
Support for pages that don't have a rail
1.3.0-1.5.0 (2018-08-30 - 2019-02-17 • diff.jsdiff.css)
Improvements and fixes to join button for consistency with the Wikia rail button style
Wiki specific changes
2.0.0 (2019-02-20 • code)
Cross wiki support
Initial Dev Wiki publish
3.0.0 (2019-02-21 • diff)
I18n support
Bug fixes
Text above can be found here (edit)