Support wiki

This is the wiki.gg support wiki! It's a different site from your content wiki!

DiscordCompact

From Support Wiki
Jump to navigation Jump to search


DiscordCompact is a gadget for Wikis to display a Discord server widget. It is similar to DiscordWidget, but instead displays a much smaller, simplified widget. This is useful for wikis that don't have a lot of space to fit content into the main page.

Installation

Make sure you enable your Widget in your Discord Server Settings:

Server Settings > Engagement > Server Widget > Enable Server Widget

You can also find the server ID in this screen.

Gadget

Copy MediaWiki:Gadgets/DiscordCompact, MediaWiki:Gadgets/DiscordCompact/main.js, and Category:Pages_using_DiscordCompact to your wiki.

Template

Copy Template:Discord and Template:Discord/doc to your wiki.

Make sure to read the documentation there, and replace the provided server id with you own when you use it.

Customization (optional)

If you want to customize the appearance with CSS, create the page MediaWiki:Gadgets/DiscordCompact/custom.css on your wiki. However, what is being loaded is just an image supplied by Discord, so there's nothing you can do to it directly. Customization is limited to what can be done to the wrapper, which is mostly just positioning and borders. For example:

#discord-compact-widget {
	/* center */
	margin:auto;
}

Troubleshooting

If you have followed all of the steps listed on this page, this widget should log any errors it encounters to the Console. You can view the Console in most browsers by pressing F12 and selecting the Console tab. Look for the phrase "DiscordCompact".

See also