29,426
edits
No edit summary |
m (→Discord test: I) |
||
Line 144: | Line 144: | ||
==Discord test== | ==Discord test== | ||
To get Discord to show on Halopedia we need two things. | |||
*1. Pretty much we need to activate Javascript on here. | |||
*2. Get the id of the Halopedia Discord. | |||
After we chosen that. We then go onto what size we want the discord to be, and if we will use a light or dark theme. | |||
===Premade template I made=== | |||
[[Template:DiscordIntegrator]] | [[Template:DiscordIntegrator]] | ||
===Template code=== | |||
<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> | <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> | ||
===My test server=== | |||
{{DiscordIntegrator | {{DiscordIntegrator | ||
| id = 330034396583428096 | | id = 330034396583428096 | ||
| theme = dark | | theme = dark | ||
| width = 500px | |||
| height = 500px | |||
}} | |||
===Halopedia=== | |||
{{DiscordIntegrator | |||
| id = ??? | |||
| theme = light | |||
| width = 500px | | width = 500px | ||
| height = 500px | | height = 500px | ||
}} | }} |