Template:Store/doc

From Terraria Wiki
Jump to navigation Jump to search

This template will keep all the store info in one area, where it can be easily updated. It is located at the top of the Terraria Wiki page, where all the information is stored (although, it may be best to keep it in this template).

The template assigns values to variables which can in turn be used by the page. The variable names are identical to the parameter names (with a -store suffix). They are purposefully long to insure they do not interfere with other variable names on the page.

The template can also be used to retrieve information by passing the parameter name as an unnamed parameter.

Usage

Storing information

{{store
| steam = https://steampowered.com/app/105600
| gog = https://gog.com/game/terraria
| ps4 = https://playstation.com/games/terraria
| xbox360 = https://marketplace.xbox.com/product/66acd000-77fe-1000-9115-d8025841128f
| xbox1 = https://xbox.com/games/store/-/BTNPS60N3114
| googleplay = https://play.google.com/store/apps/details?id=com.and.games505.TerrariaPaid
| amazon = https://terraria.wiki.gg/Mobile_version#Amazon_Appstore
| ios = https://terraria.wiki.gg/Mobile_version#Apple_App_Store
| windowsphone = https://microsoft.com/p/-/9nblggh186xz
| nintendo = https://www.nintendo.com/search/?q=Terraria&cat=gme&f=softwarePublisher&softwarePublisher=505%20Games
| 3ds = https://terraria.wiki.gg/3DS_version#Nintendo_3DS_store_pages
| wiiu = https://nintendo.co.uk/Terraria-1038735.html
| switch = https://terraria.wiki.gg/Console_version#Nintendo_Switch_store_pages
| chinese-android = https://taptap.com/app/194610<!-- Chinese mobile version (Android) -->
| chinese-ios = https://apps.apple.com/cn/app/1157863540<!-- Chinese mobile version (iOS) -->
}}

Retrieving information