Вбудовані віджети

Please note that embeddable widgets are enabled for specific referals, contact us if you need access.

What code do I need to produce in order to use the embeddable widget?

Using javascript

By using the javascript code, you ensure that the generated iframe will resize no matter how your contents are.
It's the recommended solution.

<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="{param}">
        <a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a>
</blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Using an iframe

Using the iframe code is srtaightforward, but you need to ensure the height is set depending on your content and the content inside the requested iframe.

<iframe
    class="edsm-embed-iframe"
    style="background: transparent;border: none;max-width: 840px;width: 100%;margin: 10px 0px; padding: 0px;"
    scrolling="no"
    src="https://www.edsm.net/uk/tools/embed?query={param}">
        <a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a>
</iframe>
Example: System by name
{systemName}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="Colonia"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: System by id
{systemId}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="3200"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: System by name with prefix
system::{systemName}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="system::Sol"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: System by id with prefix
system::{systemId}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="system::4300"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Minor factions in system by system name
{systemName}::factions
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="Colonia::factions"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Minor factions in system by system id
{systemId}::factions
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="350::factions"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Minor factions in system by system name with prefix
system::{systemName}::factions
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="system::Achali::factions"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Minor factions in system by system id with prefix
system::{systemId}::factions
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="system::27::factions"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Station by system and station name with prefix
station::{systemName}::{stationName}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="station::Sol::Daedalus"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Station by id with prefix
station::{stationId}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="station::11000"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Celestial body by system and body id with prefix
body::{systemId}::{bodyId}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="body::124406::543"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Celestial body by system and body name with prefix
body::{systemName}::{bodyName}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="body::Colonia::Colonia 3 c"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Celestial body by id with prefix
body::{bodyId}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="body::3794"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Faction by name with prefix
faction::{factionName}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="faction::Mother Gaia"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Faction by id with prefix
faction::{factionId}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="faction::7500"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Expedition by id with prefix
expedition::{expeditionId}
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="expedition::38"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Expedition timer by id with prefix
expedition::{expeditionId}::timer
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="expedition::38::timer"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>

Example: Expedition waypoints by id with prefix
expedition::{expeditionId}::waypoints
<blockquote
    class="edsm-embed"
    lang="uk"
    data-value="expedition::38::waypoints"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote>
<script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>