Template:Item: Difference between revisions
Jump to navigation
Jump to search
FaeriMagic (talk | contribs) m (Moved "How to use" section and renamed it to "Template:". Edited TemplateData.) |
FaeriMagic (talk | contribs) m (Increased border size.) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| style="display: inline-block; margin: 5px; border: | {| 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 7: | Line 7: | ||
| #default = background: radial-gradient(circle, white, lightgray); | | #default = background: radial-gradient(circle, white, lightgray); | ||
}}" | }}" | ||
| <div style="padding: 3.5px 0 0 3.5px; font-size: 8px;">[[File:{{{img| | | <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: | | <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> | ||
Line 27: | Line 27: | ||
"suggested": true, | "suggested": true, | ||
"example": "Item_Icon.png", | "example": "Item_Icon.png", | ||
"default": " | "default": "Sprite_Skill_Pearl.png" | ||
}, | }, | ||
"rarity": { | "rarity": { | ||
Line 39: | Line 39: | ||
"description": "The quantity of the item is listed here.", | "description": "The quantity of the item is listed here.", | ||
"type": "number", | "type": "number", | ||
"suggested": true | "suggested": true | ||
}, | }, |
Latest revision as of 22:00, 15 June 2025
![]() |
Template:
{{Item | name = | img = | rarity = | num = }}
This template renders an item icon.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | The item's page name is listed here and will direct the user to that page upon click. | Page name | required |
img | img | The item icon image is listed here. Do not use the "File:" prefix.
| File | suggested |
rarity | rarity | The rarity determines the background color of the icon.
| String | required |
quantity | num | The quantity of the item is listed here. | Number | suggested |