Template:Item: Difference between revisions

m (Removed default num.)
m (Increased border size.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="display: inline-block; margin: 5px; border: 2px solid #895C40; width: 54px; height: 54px; border-radius: 2px; position: relative; cursor: pointer; {{#switch: {{uc:{{{rarity|}}}}}
{| style="display: inline-block; margin: 5px; border: 3px 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);
Line 8: Line 8:
}}"
}}"
| <div style="padding: 3.5px 0 0 3.5px; font-size: 8px;">[[File:{{{img|Sprite_Skill_Pearl.png}}}|link={{{name|}}}]]</div>
| <div style="padding: 3.5px 0 0 3.5px; font-size: 8px;">[[File:{{{img|Sprite_Skill_Pearl.png}}}|link={{{name|}}}]]</div>
| <span style="position: absolute; bottom: 0px; right: 5px; color: white; font-weight: bold; font-size: 12px; text-shadow: 2px 2px 5px black;">{{{num|0}}}</span>
| <span style="position: absolute; bottom: 0px; right: 5px; color: white; font-weight: bold; font-size: 12px; text-shadow: 2px 2px 5px black;">{{{num|}}}</span>
|}
|}
<noinclude>
<noinclude>

Latest revision as of 22:00, 15 June 2025

Template:

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

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 namerequired
imgimg

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

Default
Sprite_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);
Stringrequired
quantitynum

The quantity of the item is listed here.

Numbersuggested