Jump to content

Widget:SteamStore: Difference between revisions

From Empires Wiki
mNo edit summary
m Adjust Steam iframe color-scheme handling for dark mode and remove duplicate dimensions.
 
Line 5: Line 5:
To insert this widget, use the following code:
To insert this widget, use the following code:
  <nowiki>{{#widget:SteamStore
  <nowiki>{{#widget:SteamStore
  | id =
| id =
}}</nowiki>
}}</nowiki>


Line 11: Line 11:
ID = Steam Store ID of the application/game. For example Empires is 17740.
ID = Steam Store ID of the application/game. For example Empires is 17740.


</noinclude><includeonly><iframe src="https://store.steampowered.com/widget/<!--{$id|escape:'html'}-->/" frameborder="0" width="<!--{$width|default:"650"|escape:html}-->" height="<!--{$height|default:"190"|escape:html}-->"width="646" height="190"></iframe></includeonly>
</noinclude><includeonly><iframe
    src="https://store.steampowered.com/widget/<!--{$id|escape:'html'}-->/"
    width="<!--{$width|default:'650'|escape:'html'}-->"
    height="<!--{$height|default:'190'|escape:'html'}-->"
    frameborder="0"
    title="Steam store widget"
    style="border:0; background:transparent; color-scheme:light;"
></iframe></includeonly>

Latest revision as of 16:08, 28 September 2026

This widget allows you to embed a SteamStore widget on a page. (HTML version)

Using this widget

To insert this widget, use the following code:

{{#widget:SteamStore
 | id =
}}

Parameters

ID = Steam Store ID of the application/game. For example Empires is 17740.