User:CIA391/Sandbox2: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
Line 21: Line 21:
MediaWiki:ImportJS
MediaWiki:ImportJS
MediaWiki:DiscordIntegrator/code.js
MediaWiki:DiscordIntegrator/code.js
===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==
==Twitter==
This will be my test area for Twitter after I get Discord working.
This will be my test area for Twitter after I get Discord working.

Revision as of 05:22, March 13, 2018

This page is currently holding stuff that will be useful to keep for later stuff.

Another integrators

May need to ask Porplemontage on getting these added.

Discord test

This is my test harness for Discord and to get it working 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.

MediaWiki:ImportJS

Experiments to get the integrator working MediaWiki:ImportJS MediaWiki:DiscordIntegrator/code.js

Twitter

This will be my test area for Twitter after I get Discord working.