Szablon:Store/doc

Z Terraria Wiki
Skocz do: nawigacja, szukaj

Ten szablon trzyma informacje o sklepach w jednym miejscu w celu łatwej aktualizacji. Jest zlokalizowany na górze strony Terraria Wiki. 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 don't 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. Example: {{sklep|steam}} will return the website for the steam store.

Jak używać[edytuj kod]

Przypisanie wartości[edytuj kod]

{{sklep
 | steam       = http://store.steampowered.com/app/105600/
 | gog         = http://www.gog.com/game/terraria
 | playstation = https://store.playstation.com/#!/en-us/search/f=%5Eterraria
 | ps4         = https://store.playstation.com/#!/en-us/games/terraria-ps4-edition/cid=UP4040-CUSA00740_00-TERRARIA00000001
 | xbox        = http://www.xbox.com/en-us/search?q=terraria#Games
 | xbox1       = https://www.microsoft.com/en-us/store/p/Terraria/BTNPS60N3114
 | xbox360     = http://marketplace.xbox.com/en-us/product/Terraria-Xbox-360-Edition/66acd000-77fe-1000-9115-d8025841128f
 | googleplay  = https://play.google.com/store/apps/details?id=com.and.games505.TerrariaPaid
 | amazon      = http://www.amazon.com/505-Games-Terraria/dp/B00G6ZTM3Y
 | ios         = https://itunes.apple.com/us/app/terraria/id640364616
 | windowsphone= https://www.microsoft.com/en-us/store/p/terraria/9nblggh186xz
 | nintendo    = http://www.nintendo.com/search/#/results/terraria
 | wiiu        = http://www.nintendo.com/games/detail/terraria-wii-u
 | 3ds         = http://www.nintendo.com/games/detail/terraria-3ds
 }}

Zwracanie wartości[edytuj kod]

Dla przykładu, {{sklep|steam}} daje https://steampowered.com/app/105600/Terraria/