Template:Item: Difference between revisions

From The Unofficial Isekai:Slow Life Wiki
Jump to navigation Jump to search
(Created template.)
 
m (Removed extra line break.)
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="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: 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);
   | SR      = background: radial-gradient(circle, #6A3F84, #32203A);
   | SR      = background: radial-gradient(circle, #6A3F84, #32203A);
   | R        = background: radial-gradient(circle, #2F516E, #131C2D);
   | R        = background: radial-gradient(circle, #2F516E, #131C2D);
  | N        = background: radial-gradient(circle, #41795A, #274136);
   | #default = background: radial-gradient(circle, white, lightgray);
   | #default = background: radial-gradient(circle, white, lightgray);
}}"
}}"
| <div style="padding-left: 3.5px;">[[File:{{{img|Item_Skill_Pearl.png}}}|link={{{name|}}}]]</div>
| <div style="padding: 3.5px 0 0 3.5px; font-size: 8px;">[[File:{{{img|Item_Skill_Pearl.png}}}|link={{{name|}}}]]</div>
| <span style="position: absolute; bottom: 0px; right: 5px; color: white; font-weight: bold; font-size: 14px; text-shadow: 2px 2px 5px black;">{{{num|0}}}</span>
| <span style="position: absolute; bottom: 0px; right: 5px; color: white; font-weight: bold; font-size: 14px; text-shadow: 2px 2px 5px black;">{{{num|0}}}</span>
|}
|}
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 18: Line 18:
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true,
"suggested": true,
"example": "Item_Icon.png"
"example": "Item_Icon.png",
"default": "Item_Skill_Pearl.png"
},
},
"rarity": {
"rarity": {

Revision as of 22:19, 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    =
}}