« Modèle:DiscordIntegrator » : différence entre les versions

De Wiki Lylat
Aller à la navigationAller à la recherche
Page créée avec « <includeonly>{{#if:{{{1|{{{id|}}}}}}|<span class="DiscordIntegrator" data-id="{{{1|{{{id}}}}}}" data-logged-in="{{{loggedIn}}}" data-usePTB="{{{usePTB|}}}" data-theme="{{{theme|dark}}}" data-width="{{{width|100%}}}" data-height="{{{height|90%}}}" data-allowtransparency="{{{allowtransparency|true}}}" frameborder="{{{frameborder|0}}}">Si vous voyez ceci, votre JavaScript doit être désactivé ou le plugin DiscordIntegrator ne fonctionne pas. Si c'est ce dernier, m... »
 
Aucun résumé des modifications
 
Ligne 1 : Ligne 1 :
<includeonly>{{#if:{{{1|{{{id|}}}}}}|<span class="DiscordIntegrator" data-id="{{{1|{{{id}}}}}}" data-logged-in="{{{loggedIn}}}" data-usePTB="{{{usePTB|}}}" data-theme="{{{theme|dark}}}" data-width="{{{width|100%}}}" data-height="{{{height|90%}}}" data-allowtransparency="{{{allowtransparency|true}}}" frameborder="{{{frameborder|0}}}">Si vous voyez ceci, votre JavaScript doit être désactivé ou le plugin DiscordIntegrator ne fonctionne pas. Si c'est ce dernier, merci de contacter un administrateur du wiki.</span>|<span style="color:red">'''DiscordIntegrator erreur: l'ID du serveur non fourni.'''</span> Dans les instructions pour trouver l'ID d'un serveur Discord, lire [https://support.discordapp.com/hc/en-us/articles/206346498-Where-can-I-find-my-server-ID- ceci]}}</includeonly><noinclude>{{{{BASEPAGENAME}}/doc/fr}}<!--{{documentation}} does not work here-->[[Category:Templates]]</noinclude>
<includeonly>{{#if:{{{1|{{{id|}}}}}}|<span class="DiscordIntegrator" data-id="{{{1|{{{id}}}}}}" data-logged-in="{{{loggedIn}}}" data-usePTB="{{{usePTB|}}}" data-theme="{{{theme|dark}}}" data-width="{{{width|100%}}}" data-height="{{{height|90%}}}" data-allowtransparency="{{{allowtransparency|true}}}" frameborder="{{{frameborder|0}}}">If you see this, your JavaScript might be disabled or DiscordIntegrator plugin isn't working. If the latter, please contact a wiki administrator.</span>|<span style="color:red">'''DiscordIntegrator error: ID of the server isn't supplied.'''</span> On instructions how to find a Discord server ID, see [https://support.discordapp.com/hc/en-us/articles/206346498-Where-can-I-find-my-server-ID- this]}}</includeonly><noinclude>
<!-- You might want to use {{documentation}} here instead -->
== Description ==
This template is used as a utility for making usage of [[w:c:dev:DiscordIntegrator|DiscordIntegrator]] easier. In order to integrate the widget, it first needs to be enabled, for instructions on how to do that check "''[[w:c:dev:DiscordIntegrator#Enabling the widget|Enabling the widget]]''" section in the documentation.
== Parameters ==
{| class="wikitable" style="width: 100%; text-align: center"
! Option
! Type
! What it changes
! Default
|-
! <tt>id</tt>
| String
| ID of the server. For more information on how to find Discord server ID, see "Enabling the widget" section in the documentation
| N/A
|-
! <tt>loggedIn</tt>
| Boolean
| If set to true, widget will only work for logged in users
| N/A
|-
! <tt>theme</tt>
| String
| Theme of the widget. Can be set to either <code>light</code> or <code>dark</code>. If invalid option specified the default is used
| <tt>dark</tt>
|-
! <tt>width</tt>
| String
| Width of the widget.
| <tt>100%</tt>
|-
! <tt>height</tt>
| String
| Height of the widget.
| <tt>90%</tt>
|-
! <tt>usePTB</tt>
| Anything
| If to use the widget from Public Test Build server instead of the normal one
| N/A
|}
== See also ==
* [[w:c:dev:DiscordIntegrator]] for complete documentation
<!-- TO DO: Add more documentation --></noinclude>

Dernière version du 19 septembre 2023 à 21:18

Description[modifier le wikicode]

This template is used as a utility for making usage of DiscordIntegrator easier. In order to integrate the widget, it first needs to be enabled, for instructions on how to do that check "Enabling the widget" section in the documentation.

Parameters[modifier le wikicode]

Option Type What it changes Default
id String ID of the server. For more information on how to find Discord server ID, see "Enabling the widget" section in the documentation N/A
loggedIn Boolean If set to true, widget will only work for logged in users N/A
theme String Theme of the widget. Can be set to either light or dark. If invalid option specified the default is used dark
width String Width of the widget. 100%
height String Height of the widget. 90%
usePTB Anything If to use the widget from Public Test Build server instead of the normal one N/A

See also[modifier le wikicode]