Template:ItemBox/doc

From Palia Wiki
Jump to navigation Jump to search

Usages

Creates a formatted item icon with an image inside. It is intended to be used alongside other elements such as tables or formatted containers.

Syntax

{{ItemBox|Image Name|caption=|size=|padding=|link=|count=|SQ=}}
  • It automatically assumes the image is .png.
  • The default size is 80px but can be overwritten.
  • The default padding (around the entire entry) is 0.8em but can be overwritten.
  • The link will be the image name by default. To overwrite/remove link, simply name it (|link=) without the parameter filled out.
  • There is no caption made below by default, but this can be added in.
  • Setting a count= will add a floating number to the Item

Examples

{{ItemBox|Kilima Night Moth|SQ=yes}}
Kilima Night MothSQ.png
{{ItemBox|Ashura|size=100}}
Ashura

Advanced

{{ItemBox|Gold|size=100|link=}}
Gold

The following parameters can also be unnamed ones in this order: 2=Caption, 3=Padding, 4=Link.

(The exception is size, which must be named.)

{{ItemBox|Currency Fishing||0 5em|Fishing}}
Currency Fishing
{{ItemBox|Currency Fishing||0 5em|Fishing|count=15000}}
Currency Fishing

x15,000

{{ItemBox|Log Cabin Dining Chair|link=|caption=Log Cabin Dining Chair}}
Log Cabin Dining Chair
Log Cabin Dining Chair
{{ItemBox|Log Cabin Dining Chair|link=|caption=Log Cabin Dining Chair|count=5}}
Log Cabin Dining Chair

x5

Log Cabin Dining Chair

Shortcut

As a shortcut, setting the caption to equal just "1" will format it to be the item and link to the page.

{{ItemBox|Emerald Carpet Moss|size=80|caption=1}}
{{ItemBox|Celebration Cake|1}}