Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
DOORS Site Logo

Welcome to the Official DOORS Wiki!
Please read the Wiki Rules the Manual of Style and familiarise yourself with our Wiki Policies before contributing to get a better understanding of what content is allowed on our wiki and how to display it properly, if you need help don't hesitate to reach out to a DOORS Wiki Staff Member.

Template:DiscordWidget/doc: Difference between revisions

Template page
(Created the DiscordWidget template documentation page.)
 
No edit summary
Tag: 2017 source edit
 
Line 19: Line 19:
;branding
;branding
:The colors and the logo used for the widget. Should be either <code>new</code> or <code>old</code>.
:The colors and the logo used for the widget. Should be either <code>new</code> or <code>old</code>.

<includeonly>[[Category:General wiki templates]]</includeonly>

Latest revision as of 22:17, 27 November 2022

Edit-copy green.svg
This is a template documentation subpage for Template:DiscordWidget.
It contains usage information, categories, interlanguage links and other content that is not part of the original template page.

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[edit source]

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.
branding
The colors and the logo used for the widget. Should be either new or old.