Template:Windows Phone Store

维基百科,自由的百科全书

Windows Phone Store中的Windows Phone Store

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

This is a template to generate links to the Windows Phone Store. This template should only be used for Apps+Games on theWindows Phone Store and not the Windows Store.

Usage[编辑]

  1. Go to the app's page on the Windows Phone Store website.
  2. Copy the app's id (and optionally the slug) in the URL. The format for the URL would be something like http://www.windowsphone.com/en-us/store/app/########/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, where the XX section after the last/ indicates the id and the ## section just before the id indicates the slug of the app.
  3. Add the template to the External Links section of the page in the following format: {{Windows Phone Store|XXXXX|#####}} or by explicitly naming the parameters {{Windows Phone Store|id=XXXXX|slug=#####|title=App Title}}.

Parameters[编辑]

The template has support for a number of different parameters and only the first one is required to identify the app. Parameters can be named explicitly, or given in the following order:

Example[编辑]

To add the template to the WhatsApp page, open the Windows Phone Store listing for WhatsApp and copy the id and slug as outlined above. Then add the following template code to the External Links section of the page.

{{Windows Phone Store|218a0ebb-1585-4c7e-a9ec-054cf4569a79}}

This will generate a link which looks something like the following:

Windows Phone Store中的WhatsApp

Similarly, to add an external link to Halo: Spartan Assault listing on the Halo (series) page, add the following template code:

{{Windows Phone Store|id=8e162189-0baf-431e-966a-0d050eac9aab|title=Halo: Spartan Assault|slug=halo-spartan-asslt|description=Halo: Spartan Assault brings the excitement of Halo combat to touch-based devices for the very first time. Battle your way through 25 action-packed missions against the Covenant as you explore the origin of the Spartan Ops program.}}

This will generate the following link:

Windows Phone Store中的Halo: Spartan Assault. Halo: Spartan Assault brings the excitement of Halo combat to touch-based devices for the very first time. Battle your way through 25 action-packed missions against the Covenant as you explore the origin of the Spartan Ops program.

See also[编辑]