Template:Discord

From Remnant 2 Wiki
Jump to navigation Jump to search
Documentation icon Template Documentation

This template allows you to either use DiscordCompact or DiscordWidget to display information about a certain Discord server.

Usage[edit source]

In order to be able to show a Discord server widget on your wiki, first go to your Discord server and do the following:

  • Open the Server Settings, then go to the Engagement section.
  • Scroll down to Server Widget.
  • Enable the widget.
  • Copy the Server ID.

Then, do the following depending on the type of widget you want to use (compact or full).

Compact widget (default)[edit source]

Main article: support:DiscordCompact|DiscordCompact

The compact widget is the default one.

To use it, simply add the template with the server ID either as the first parameter or as the id parameter:

  • {{Discord|serverID}}
  • {{Discord|id=serverID}}

Full widget[edit source]

Main article: support:DiscordWidget|DiscordWidget

To use the full version of the Discord widget, you have to specify full=yes as one of the template parameters, with the ID either as the first parameter or as the id parameter:

  • {{Discord|serverID|full=yes}}
  • {{Discord|full=yes|id=serverID}}

You can further customize the widget with the width, height and other parameters. See the Examples section and the full documentation for DiscordWidget on the Support Wiki.

Examples[edit source]

Code Result
{{Discord|951501892553424917}}
{{Discord|id=951501892553424917}}
{{Discord|951501892553424917}|full=yes}
If you see this, your JavaScript might be disabled or DiscordIntegrator plugin isn't working. If the latter, please contact a wiki administrator.
{{Discord|full=yes
|id     = 951501892553424917
|width  = 300px
|height = 500px
}}
If you see this, your JavaScript might be disabled or DiscordIntegrator plugin isn't working. If the latter, please contact a wiki administrator.

Dependencies[edit source]

TemplateData[edit source]

This template allows you to either use DiscordCompact or DiscordWidget to display information about a certain Discord server.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Server ID1 id

The Discord server's ID.

Example
951501892553424917
Linerequired
Use full widgetfull

Do you want to use the full widget?

Example
yes
Booleanoptional
Width (full widget only)width

A custom width for the full widget.

Example
300px
Lineoptional
Height (full widget only)height

A custom height for the full widget.

Example
500px
Lineoptional