Template:Item: Difference between revisions

From The Unofficial Isekai:Slow Life Wiki
Jump to navigation Jump to search
m (Updated so template is displayed inline.)
m (Added margin-right.)
Line 1: Line 1:
{| style="display: inline-block; border: 2px solid #895C40; width: 54px; height: 54px; border-radius: 2px; position: relative; cursor: pointer; {{#switch: {{uc:{{{rarity|}}}}}
{| style="display: inline-block; margin-right: 10px; border: 2px solid #895C40; width: 54px; height: 54px; border-radius: 2px; position: relative; cursor: pointer; {{#switch: {{uc:{{{rarity|}}}}}
   | UR      = background: radial-gradient(circle, #F65E55, #B5423F);
   | UR      = background: radial-gradient(circle, #F65E55, #B5423F);
   | SSR      = background: radial-gradient(circle, #F3C359, #9D5C28);
   | SSR      = background: radial-gradient(circle, #F3C359, #9D5C28);

Revision as of 21:31, 3 April 2025

0


This template renders an item icon.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
namename

The item's page name is listed here and will direct the user to that page upon click.

Page namesuggested
imgimg

The item icon image is listed here. Do not use the "File:" prefix.

Default
Item_Skill_Pearl.png
Example
Item_Icon.png
Filesuggested
rarityrarity

The rarity determines the background color of the icon.

Default
background: radial-gradient(circle, white, lightgray);
Stringsuggested
quantitynum

The quantity of the item is listed here.

Default
0
Numbersuggested

How to use:

{{Item
  | name   =
  | img    =
  | rarity =
  | num    =
}}