Widget:Discord: Difference between revisions
Jump to navigation
Jump to search
(Add Discord widget to wiki.) |
mNo edit summary |
||
Line 8: | Line 8: | ||
| theme = | | theme = | ||
}}</nowiki> | }}</nowiki> | ||
== Parameters == | |||
id = Discord Server ID. For example Empires Discord is 227846801653366784. | |||
theme = dark (default) or light | |||
</noinclude><includeonly><iframe src="//discordapp.com/widget?id=<!--{$id|escape:'html'}-->&theme=<!--{$theme|default:"dark"|escape:urlpathinfo}-->" width="<!--{$width|default:"350"|escape:html}-->" height="<!--{$height|default:"500"|escape:html}-->" allowtransparency="true" style="border: none"></iframe></includeonly> | </noinclude><includeonly><iframe src="//discordapp.com/widget?id=<!--{$id|escape:'html'}-->&theme=<!--{$theme|default:"dark"|escape:urlpathinfo}-->" width="<!--{$width|default:"350"|escape:html}-->" height="<!--{$height|default:"500"|escape:html}-->" allowtransparency="true" style="border: none"></iframe></includeonly> |
Latest revision as of 22:07, 10 August 2023
This widget allows you to embed a Discord widget on a page. (HTML version)
Using this widget
To insert this widget, use the following code:
{{#widget:Discord | id = | theme = }}
Parameters
id = Discord Server ID. For example Empires Discord is 227846801653366784.
theme = dark (default) or light