Jump to content

MediaWiki:Gadget-Discord.js

From Terra Nil Wiki

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Clear the cache in Tools → Preferences
$('.vector-column-end .vector-sticky-pinned-container').prepend(
	$('<div>', {
		class: 'vector-menu mw-portlet',
		html: [
			$('<div>', {
				class: 'vector-menu-heading',
				text: mw.message('gadget-discord-title').plain()
			}),
			$('<div>', {
				class: 'vector-menu-content',
				html: [
					$('<p>', {
						html: mw.message('gadget-discord-text').parse()
					}),
					$('<div>', {
						class: 'center plainlinks',
						html: $('<a>', {
							href: mw.message('gadget-discord-invite').plain(),
							html: $('<span>', {
								class: 'cdx-button cdx-button--fake-button cdx-button--fake-button--enabled',
								html: [
									// [[File:Discord Logo White.png|20px]]
									$('<img>', {
										src: '/images/7/74/Discord_Logo_White.png',
										alt: 'Discord logo',
										height: '15',
										width: '20'
									}),
									mw.message('gadget-discord-button').escaped()
								]
							})
						})
					})
				]
			})
		]
	})
);
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
Add topic