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 (Edited font size and default pic.) |
||
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|0}}}</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": { |
Revision as of 19:57, 9 June 2025
![]() |
0 |
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 |