Template:Discord widget/doc: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
documentate
 
mNo edit summary
 
Line 4: Line 4:
<code>&#123;{Discord widget|''server ID''|theme=''dark'' or ''light''|width=''width in number of pixels''|height=''height in number of pixels''}}</code>
<code>&#123;{Discord widget|''server ID''|theme=''dark'' or ''light''|width=''width in number of pixels''|height=''height in number of pixels''}}</code>


Only 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.
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 ==
== Example ==

Latest revision as of 10:45, 18 December 2022

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

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