Template:Discord widget

From Irony Wiki
Jump to navigation Jump to search
Error in widget Discord widget: unable to write file /var/www/html/ironywiki/extensions/Widgets/compiled_templates/wrt6630ca9c7a16e7_88451812

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:

Error in widget Discord widget: unable to write file /var/www/html/ironywiki/extensions/Widgets/compiled_templates/wrt6630ca9c7dc8d3_80955044

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