Quickstart: Five Minutes
You do not need to know how to code. You copy a short piece of text from MTGSL and paste it into your website. After that, your standings, schedule or calendar stay current without you touching them again.
- Make sure the event is public. Embeds only show public events. In your event, open Settings and switch on the public listing. (The embed screen has a Make it public button if you forget.)
- Open the Embed screen. For a league: open the event, go to Manager Settings, then Embed on your website. For your event calendar: open your organisation, go to the Calendar tab, and click Embed on your website.
- Choose what to show and how it looks. The preview updates as you click.
- Click Copy code.
- Paste it into your website using an HTML or code block. Steps for common website builders are below.
What You Can Show
Standings
Rank, player, points and record. Show everyone, or only the top 5, 8, 10, 16 or 32. The winner gets a trophy once the event is over.
Schedule
One week of matches at a time, with scores. Visitors use the arrows to move between weeks. It opens on the current week.
Events calendar
Your organisation's upcoming public events, as a list or a month grid. Visitors can add the whole calendar to Google, Apple or Outlook.
Choose Look to match your site: light, dark, or follow each visitor's device. Pick an accent colour to match your branding. The widget is only as wide as the space you give it, and works on phones.
Where to Paste It
Every website builder has a block for custom HTML. Use that, not the normal text box. If you paste into the text box, you will see the code as words on your page.
- Edit the page or post where you want it.
- Click the + button, search for Custom HTML, and add that block.
- Paste the code into the block.
- Click Preview to check it, then Update.
Some WordPress plans (WordPress.com Free and Personal) block custom code. If you do not see Custom HTML, or the code is stripped when you save, ask your host about iframes, or upgrade the plan.
- Edit the page and click Add Block (or the + on a blank line).
- Under Embed, choose Code.
- Paste the code and turn Display Source off.
- Save the page.
Code blocks need a Squarespace Core plan or higher.
- In the editor, click Add (+), then Embed Code, then Embed HTML.
- Click the new box, choose Enter Code, and pick Code.
- Paste the code and click Update.
- Drag the box to where you want it and stretch it wide. Wix keeps the size you give it, so make it tall enough for your standings, or the bottom will be cut off.
- Go to Online Store, then Customize, and open the page you want.
- Add a Custom Liquid section (or a Custom HTML block, depending on your theme).
- Paste the code and click Save.
Look for an element called Embed Code, Custom HTML or HTML. Drag it onto the page, click it, choose to edit the custom code, paste, and publish.
How It Stays Current
- Every time someone opens your page, the widget asks MTGSL for the latest. Results show up within about 30 seconds of being reported.
- You never need to copy the code again, even if the event runs for weeks. Change the colour or the number of players? Then copy the new code.
- It follows the event's privacy. If you switch the event back to private, the widget shows a "not public" message instead of any results.
- It only shows what your public event page already shows: names, avatars, points, records and scores. No email addresses, deck lists or private notes.
Cost and the "Powered by" Link
Embedding is free on every plan. On Casual plans the bottom of the widget has a small "Powered by MTG Super League" link, plus a link to the full page on MTGSL. If the event belongs to a paid plan (Pro Organiser, Community or LGS) or to a paid organisation, those links are removed and the widget is just your content.
Troubleshooting
It says the event isn't public yet.
Open the Embed screen and click Make it public, or switch on the public listing in the event's Settings. For the calendar, your organisation's visibility must be Public. Unlisted and private organisations cannot be embedded.
I can see the code as text on my page.
It went into a normal text box. Delete it and paste it into an HTML or code block instead (see Where to Paste It).
The page is blank where the widget should be.
Some builders strip code when you save, or only show it on the live site, not in the editor. Publish the page and view the real address. If it is still blank, your plan may not allow embedded code. Ask your website host whether iframes are allowed.
It is cut off, or has its own scrollbar.
Make sure you pasted both lines, including the second one that starts with <script. On builders that fix the box size (like Wix), make the box taller.
It shows old results.
Reload the page. The widget refreshes about every 30 seconds, and your browser may keep an older copy of your own page.
The colours look wrong against my site.
Try Always light or Always dark instead of matching the device, and pick an accent colour from your logo.
For Your Web Person
If you are handing this to whoever manages your website, give them this section and the code from the Embed screen. It looks like this:
<iframe src="https://mtgsl.cloud/embed.html?type=standings&id=EVENT_ID"
title="Standings" width="100%" height="520"
style="border:0;max-width:100%;" loading="lazy" data-mtgsl-embed></iframe>
<script src="https://mtgsl.cloud/embed.js" async></script>
- Plain iframe. No account, API key or cookies are needed, and nothing is shared with MTGSL by the visitor's browser beyond a normal page load.
- Options go in the query string:
type(standings,schedule,calendar),id,theme(light,dark; omit for automatic),accent(six-digit hex without the #),rows(standings: show the top N),view(calendar:month; list is the default). - embed.js is optional. It listens for height messages from iframes that carry
data-mtgsl-embedand resizes only those frames, after checking the message came from that exact frame and origin. Without it, set a fixedheight. - Content Security Policy. If your site sets a CSP, allow
frame-src https://mtgsl.cloudand, to use the helper script,script-src https://mtgsl.cloud. - Your own domain is fine. The widget page allows framing from any site, and only that page does. The rest of MTGSL cannot be framed.
Questions
Can I show more than one widget on a page?
Yes. Copy the code for each one. You only need the <script> line once per page, but repeating it does no harm.
Can I embed a Major or a Series?
Not yet. Leagues (standings and schedule) and your organisation's calendar are supported today.
Can visitors click through?
Yes. Calendar events open the event page on MTGSL in a new tab. Players do not need to be logged in to look.
Does a manual points adjustment show up?
Yes. The standings widget uses the same points as the standings on your event page, including adjustments.
Ready to put it on your site?
Open your event, then Manager Settings, then Embed on your website.