Template:Discord widget
This template outputs a Discord server's HTML widget. Note that the widget needs to be enabled in the server's settings first.
Usage[edit source]
{{Discord widget|server ID|theme=dark or light|width=width in number of pixels|height=height in number of pixels}}
The server ID, which is the Discord server's numerical ID, is the only parameter that is required. Other parameters will default to the values recommended by Discord. See the TemplateData section below for more information about the parameters.
Example[edit source]
{{Discord widget|823360746930700300}}
would output the widget for server 823360746930700300, which looks like:
TemplateData[edit source]
Adds a Discord server's HTML widget. Note that this needs to be enabled in the server's settings.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Server ID | 1 | The numerical ID of the Discord server.
| Number | required |
theme | theme | Whether the widget should use Discord's dark or light theme.
| String | optional |
width | width | The width of the widget in pixels.
| Number | optional |
height | height | The height of the widget in pixels.
| Number | optional |