Template:Discord widget: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
(c)
 
No edit summary
 
Line 1: Line 1:
{{#widget:Discord widget|id={{{id|0}}}|theme={{{theme|dark}}}|width={{{width|350}}}|height={{{height|500}}}}}<noinclude>{{documentation}}</noinclude>
{{#widget:Discord widget|id={{{1|0}}}|theme={{{theme|dark}}}|width={{{width|350}}}|height={{{height|500}}}}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 10:30, 18 December 2022

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

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/wrt665b67767fdad2_76290445

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