Template:Shopbox/doc

Da Official Temtem Wiki.
Jump to navigation Jump to search
Template-info.png Documentation

Usage[modifica]

This template is to be used on various pages a shop appears that sells General, Capture, Medicine, or Gear items.

Parameters[modifica]

{{Shopbox
| ShopName = 

| currency = 

| group1 = General

| GeneralItem1Name = 
| GeneralItem1Price = 
| GeneralItem2Name = 
| GeneralItem2Price = 

| group2 = Furniture

| FurnitureItem1Name = 
| FurnitureItem1Price = 

}}

ShopName
The name of the shop that these items are being sold in.
currency
The currency that should be used, see Template:Currency for details on what's accepted. Defaults to pansuns, and the parameter should only be included if used.


This template supports any number of groups and items within that group.

groupX = Y
Where X is an integer and Y is a string, sets the name of group X to Y.
Standard group names and order are General, Capture, Medicine, Gear, Furniture, Cosmetics, DyeBundle
DyeBundle is built-in to template functionality and will be split into two words for the actual display text
YItemZName, YItemZPrice, YItemZImage
Where Y is defined in the group parameter above, and Z is an integer. Sets the name, price, and image of the Zth item in group Y. Note that image is optional, and if not given (preferred) then it will attempt to use a png file with the same name as the name parameter.

Example[modifica]

The Shopbox for the Temporium in Quetzal would appear as such:

Temporium
General
Smoke Bomb.png
120 Template:Currency
Super Scent.png
320 Template:Currency
Capture
TemCard.png
15 Template:Currency
TemCardPlus.png
80 Template:Currency
Medicine
BalmPlus.png
325 Template:Currency
EtherPlus.png
300 Template:Currency
Power Revive.png
700 Template:Currency
Revive.png
500 Template:Currency
TonicPlus.png
350 Template:Currency
Untrapper.png
150 Template:Currency
Antidote.png
120 Template:Currency
Balm.png
80 Template:Currency

Code[modifica]

{{Shopbox
| ShopName = Temporium

| group1 = General

| GeneralItem1Name = Smoke Bomb
| GeneralItem1Price = 120

| GeneralItem2Name = Super Scent
| GeneralItem2Price = 320

| group2 = Capture

| CaptureItem1Name = TemCard
| CaptureItem1Price = 15

| CaptureItem2Name = TemCard+
| CaptureItem2Price = 80

| group3 = Medicine

| MedicineItem1Name = Balm+
| MedicineItem1Price = 325

| MedicineItem2Name = Ether+
| MedicineItem2Price = 300

| MedicineItem3Name = Power Revive
| MedicineItem3Price = 700

| MedicineItem4Name = Revive
| MedicineItem4Price = 500

| MedicineItem5Name = Tonic+
| MedicineItem5Price = 350

| MedicineItem6Name = Untrapper
| MedicineItem6Price = 150

| MedicineItem7Name = Antidote
| MedicineItem7Price = 120

| MedicineItem8Name = Balm
| MedicineItem8Price = 80
}}

The best practice would be to put all the items in order the shop sells them. In the above example, Balm is the last item in the shops list.