Template:DiscordWidget
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Embeds a customizable 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.
Parameters
{{DiscordWidget
|id = discord widget ID
|theme = dark / light
|invite = server invite URL
|header = add as 1 to add header
|width = the widget's width
|height = the widget's height
|text = placeholder text while the widget is loading
}}
- id or 1 — defaults to the ID configured on MediaWiki:Custom-Discord-id
- invite — defaults to an invite URL generated by Discord
Example
{{DiscordWidget|header = 1|width = 120px}} yields:
Template Data
Embeds a customizable Discord widget on the page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Server ID | id 1 | The Discord widget ID. It can also be the first numbered parameter passed to the template. | String | optional |
| Widget's theme | theme | no description
| Boolean | optional |
| Server invite link | invite | no description | URL | optional |
| Widget Header | header | no description
| Boolean | optional |
| Widget width | width w | no description
| Number | optional |
| Widget height | height h | no description
| Number | optional |
| Fallback text | text | no description
| String | optional |