|
|
Line 142: |
Line 142: |
| </div> | | </div> |
| </div> | | </div> |
|
| |
| ==Discord test==
| |
| http://dev.wikia.com/wiki/DiscordIntegrator
| |
|
| |
| 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 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>
| |
|
| |
| ===My test server===
| |
| {{DiscordIntegrator
| |
| | id = 330034396583428096
| |
| | theme = dark
| |
| | width = 500px
| |
| | height = 500px
| |
| }}
| |
|
| |
| ===Halopedia===
| |
| {{DiscordIntegrator
| |
| | id = 258355019781242883
| |
| | theme = light
| |
| | width = 500px
| |
| | height = 500px
| |
| }}
| |
|
| |
| ==Twitter==
| |