Widget:WidgetBot: Difference between revisions

From Destinypedia, the Destiny wiki

(Created page with "<noinclude>This widget allows you to embed Discord WidgetBot clients. Accepted parameters: '''server''' (required), '''channel''' (required), '''width''', '''height''', '''cra...")
 
No edit summary
 
Line 1: Line 1:
<noinclude>This widget allows you to embed Discord WidgetBot clients. Accepted parameters: '''server''' (required), '''channel''' (required), '''width''', '''height''', '''crate'''.</noinclude><includeonly><!--{if isset($server) && isset($channel)}--><!--{if isset($crate)}--><script src="https://cdn.jsdelivr.net/npm/@widgetbot/crate@3" async defer>
<noinclude>This widget allows you to embed Discord WidgetBot clients. Accepted parameters: '''server''' (required), '''channel''' (required), '''width''', '''height''', '''crate'''.</noinclude><includeonly><!--{if isset($server) && isset($channel)}--><!--{if isset($crate)}--><script src="https://cdn.jsdelivr.net/npm/@widgetbot/crate@3" async defer>
   new Crate({
   new Crate({
     server: '<!--{($server|escape:'html')|string_format:"%d"}-->',
     server: '<!--{$server|escape:'html'|string_format:"%d"}-->',
     channel: '<!--{($channel|escape:'html')|string_format:"%d"}-->'
     channel: '<!--{$channel|escape:'html'|string_format:"%d"}-->'
   })
   })
</script><!--{else}--><widgetbot
</script><!--{else}--><widgetbot
   server="<!--{($server|escape:'html')|string_format:"%d"}-->"
   server="<!--{$server|escape:'html'|string_format:"%d"}-->"
   channel="<!--{($channel|escape:'html')|string_format:"%d"}-->"
   channel="<!--{$channel|escape:'html'|string_format:"%d"}-->"
   width="<!--{if isset($width)}--><!--{($width|escape:'html')|string_format:"%d"}--><!--{else}-->100%<!--{/if}-->"
   width="<!--{if isset($width)}--><!--{$width|escape:'html'|string_format:"%d"}--><!--{else}-->100%<!--{/if}-->"
   height="<!--{if isset($height)}--><!--{($height|escape:'html')|string_format:"%d"}--><!--{else}-->600<!--{/if}-->"
   height="<!--{if isset($height)}--><!--{$height|escape:'html'|string_format:"%d"}--><!--{else}-->600<!--{/if}-->"
></widgetbot>
></widgetbot>
<script src="https://cdn.jsdelivr.net/npm/@widgetbot/html-embed"></script><!--{/if}--><!--{else}--><p style="color:red">You must provide the <b>server</b> and <b>channel</b> for the Discord WidgetBot!</p><!--{/if}--></includeonly>
<script src="https://cdn.jsdelivr.net/npm/@widgetbot/html-embed"></script><!--{/if}--><!--{else}--><p style="color:red">You must provide the <b>server</b> and <b>channel</b> for the Discord WidgetBot!</p><!--{/if}--></includeonly>

Latest revision as of 23:07, July 23, 2021

This widget allows you to embed Discord WidgetBot clients. Accepted parameters: server (required), channel (required), width, height, crate.