Template:DiscordWidget

From Atelier Wiki
Jump to navigation Jump to search
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:DiscordWidget/doc to edit this documentation. (How does this work?)

Description

Embeds a customisable Discord widget on the page, independent from the rail widget. Useful for the main page which doesn't have a traditional rail element but often has a column design.

Example

If you see this, your JavaScript might be disabled or DiscordIntegrator plugin isn't working. If the latter, please contact a wiki administrator.

Parameters

id:
The Discord widget ID. It can also be the first numbered parameter passed to the template. Defaults to the ID configured on MediaWiki:Custom-Discord-id.
theme:
The theme name. Should be one of dark or light, other theme names will default to dark but allow further custom CSS to affect it.
invite:
The invite URL to be used in the join button. Defaults to an invite URL generated by Discord.
header:
Whether to add the header above the widget or not. Any value other than 0 is considered truthy. Default: 0
width:
The widget's width. Aliases: w
height:
The widget's height. Aliases: h
text:
The placeholder text while the widget is loading. Not required. Defaults to an empty string.