Template:Ms store/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created doc.)
 
m (→‎See also: clean up, replaced: See Also → See also)
 
(29 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->
Link to {{ms store}} Store.
Link to {{ms store}} aswell as {{ms store|site=xbox}}.
 
Links that open the Microsoft Store app on {{win|1}} (such as "{{code|ms-windows-store://}}") are currently not supported on this wiki, unlike "{{t|steam}}" template.


== Parameters and Examples ==
== Parameters and Examples ==
Line 16: Line 18:
|-
|-
| style="text-align:center" | {{Code| {{param}} }}
| style="text-align:center" | {{Code| {{param}} }}
| Product IDs on '''Microsoft Store'''. <br>{{code|<nowiki>{{ms store|<ProductName>/<ProductID>}}</nowiki>}} also works.
| Product IDs & Product Name on '''Microsoft Store'''. <br>'''Only required for {{code|apps.microsoft.com}} and Xbox links:''' {{code|<nowiki>{{ms store|<ProductName>/<ProductID>}}</nowiki>}}. <br>{{code|ProductName}} part is required for {{code|apps.microsoft.com}} and Xbox links. {{code|<ProductName>}} does not work with {{code|microsoft.com/store/productid/}}<!-- WARNING: DO NOT DELETE THIS LEGACY LINK AS VERY FEW LANGUAGES STILL RELY ON THIS INSTEAD OF "apps.microsoft.com"! --> links. {{Bug|Links with <ProductName> on it will ended up with 404 pages if you click on the icon itself instead of the link, due to URL encoding issue.}}
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{ms store|<ProductID>}}</nowiki>}}{{CodeBlock|<nowiki>{{ms store|9MV0B5HZVK9Z}}</nowiki>}}{{CodeBlock|<nowiki>{{ms store|xbox/9MV0B5HZVK9Z}}</nowiki>}}
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{ms store|<ProductID>}}</nowiki>}}{{CodeBlock|<nowiki>{{ms store|9MV0B5HZVK9Z}}</nowiki>}}{{CodeBlock|<nowiki>{{ms store|xbox/9MV0B5HZVK9Z|site=ms-store2}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{ms store|xbox/9MV0B5HZVK9Z}} }}
| style="padding:.2em .5em" | {{Capsule|{{ms store|9MV0B5HZVK9Z}}}} {{Capsule|{{ms store|xbox/9MV0B5HZVK9Z|site=ms-store2}} }}
|-
|-
| style="text-align:center" | {{Code| {{param|2}} }}
| style="text-align:center" | {{Code| {{param|2}} }}
Line 24: Line 26:
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{ms store|<ProductID>|<App name>}}</nowiki>}}{{CodeBlock|<nowiki>{{ms store|9MV0B5HZVK9Z|Xbox App on MS Store}}</nowiki>}}
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{ms store|<ProductID>|<App name>}}</nowiki>}}{{CodeBlock|<nowiki>{{ms store|9MV0B5HZVK9Z|Xbox App on MS Store}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{ms store|9MV0B5HZVK9Z|Xbox App on MS Store}} }}
| style="padding:.2em .5em" | {{Capsule| {{ms store|9MV0B5HZVK9Z|Xbox App on MS Store}} }}
|-
| style="text-align:center" | {{Code| {{param|site}} }}
| If set to "{{code|Xbox}}", "{{code|xbox}}" or "{{code|xboxsite}}", changes the link to Xbox website, which have it's own Store page.<br>If set to "{{code|ms-store2}}, {{code|msstore2}}, {{code|ms store 2}} or {{code|apps}}", loads {{code|apps.microsoft.com}} instead of {{code|microsoft.com/store/productid/}}. <br><br>{{Code|<ProductName>/<ProductID>}} is required for Xbox links and for {{code|apps.microsoft.com}} links, otherwise goes to 404 page if there's no "{{code|<ProductName>}}" on the URL.
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{ms store|<ProductName>/<ProductID>|<App name>|site=xbox}}</nowiki>}}{{CodeBlock|<nowiki>{{ms store|quake/9P1Z43KRNQD4|Get Quake on Xbox website|site=xboxsite}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{ms store|quake/9P1Z43KRNQD4|Get Quake on Xbox website|site=xbox}} }}
|-
|-
| style="text-align:center" | {{Code| {{param|icon}} }}
| style="text-align:center" | {{Code| {{param|icon}} }}
Line 32: Line 39:
|}
|}


== See Also ==
== See also ==
{{External link templates}}
{{External link templates}}



Latest revision as of 02:25, 12 January 2024

Edit-copy.png
This is a documentation subpage for Template:Ms store.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Link to Microsoft Store Microsoft Store aswell as Xbox Store Xbox Store.

Links that open the Microsoft Store app on Windows (such as "ms-windows-store://") are currently not supported on this wiki, unlike "{{steam}}" template.

Parameters and Examples

Parameter Description Example Preview
No Parameters Creates a link to Microsoft Store.
{{ms store}}
{{{1}}} Product IDs & Product Name on Microsoft Store.
Only required for apps.microsoft.com and Xbox links: {{ms store|<ProductName>/<ProductID>}}.
ProductName part is required for apps.microsoft.com and Xbox links. <ProductName> does not work with microsoft.com/store/productid/ links.
Icon-Bug.pngBug:Links with <ProductName> on it will ended up with 404 pages if you click on the icon itself instead of the link, due to URL encoding issue.  [todo tested in ?]
{{ms store|<ProductID>}}
{{ms store|9MV0B5HZVK9Z}}
{{ms store|xbox/9MV0B5HZVK9Z|site=ms-store2}}
{{{2}}} Alternative name of the link.
{{ms store|<ProductID>|<App name>}}
{{ms store|9MV0B5HZVK9Z|Xbox App on MS Store}}
{{{site}}} If set to "Xbox", "xbox" or "xboxsite", changes the link to Xbox website, which have it's own Store page.
If set to "ms-store2, msstore2, ms store 2 or apps", loads apps.microsoft.com instead of microsoft.com/store/productid/.

<ProductName>/<ProductID> is required for Xbox links and for apps.microsoft.com links, otherwise goes to 404 page if there's no "<ProductName>" on the URL.
{{ms store|<ProductName>/<ProductID>|<App name>|site=xbox}}
{{ms store|quake/9P1Z43KRNQD4|Get Quake on Xbox website|site=xboxsite}}
{{{icon}}} Hide/shows the icon.
Values: show (default), hide
{{ms store|icon=hide}}

See also

Cross-wiki link templates
Template Preview
{{wikipedia}}
{{wiki}}
{{w}}
Wikipedia icon Wikipedia
{{cow}} Combine overwiki icon.png Combine OverWiki
{{l4dwiki}} Left 4 Dead Wiki Left 4 Dead Wiki
{{pcgw}} Pcgw icon.png PCGamingWiki
{{portalwiki}} Portalwiki icon.png Portal Wiki
{{sboxwiki}} S&box icon.png S&Box Wiki
{{tfwiki}} Tfwiki favicon.png Team Fortress Wiki
{{twhl}} Twhl hammer emote.png TWHL Wiki
{{quakewiki}} Quake1-16px.png Quake Wiki
{{cswiki}} Counter-Strike Wiki Counter-Strike Wiki
Social media link templates
Template Preview
{{bluesky}} Bluesky Bluesky
{{discord}} Discord logo Discord
{{reddit}} Reddit logo Reddit
{{steam community}} Steam Community Steam Community
{{twitch}} Twitch logo Twitch
{{twitter}}
{{x}}
Logo for X X (Twitter)
{{youtube}} YouTube logo YouTube
Storefront link templates
Template Preview
{{steam store}} Steam Store Steam Store
{{epic}}
{{egs}}
Epic Games Store Epic Games Store
{{gplay}} Google Play Google Play
{{gog}} GOG.com GOG.com
{{ms store}}
(PC, Xbox One Xbox One, Xbox Series X/S)
Microsoft Store Microsoft Store
{{xbox store}}
(Xbox 360 Xbox 360)
Xbox Marketplace Xbox Marketplace
{{nintendo store}} Nintendo Store Nintendo Store
Other link templates
Template Preview
{{steam}} Steam Protocol
{{email}}
{{e}}
gaben@valvesoftware.com
{{github}} GitHub GitHub
{{gamebanana}} ModDB GameBanana
{{moddb}} ModDB ModDB
{{rtsl}} rtsl RTSL
{{protondb}} ProtonDB ProtonDB
{{steamdb}}
{{sdb}}
SteamDB SteamDB
{{gdrive}}
{{gd}}
Google Drive Google Drive
{{fragnet}}
{{fn}}
Frag-Net Frag-Net

ViewDiscussEdit templatePurge