Template:Discord widget

From Irony Wiki
Revision as of 10:30, 18 December 2022 by Saucy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Server ID1

The numerical ID of the Discord server.

Example
823360746930700300
Numberrequired
themetheme

Whether the widget should use Discord's dark or light theme.

Suggested values
dark light
Default
dark
Stringoptional
widthwidth

The width of the widget in pixels.

Default
350
Numberoptional
heightheight

The height of the widget in pixels.

Default
500
Numberoptional