Template:Item: Difference between revisions
Jump to navigation
Jump to search
FaeriMagic (talk | contribs) m (Added N rarity radial-gradient.) |
FaeriMagic (talk | contribs) m (Added font-size if there is no file or pagelink for the item.) |
||
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;">[[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> | ||
|} | |} |
Revision as of 22:12, 3 April 2025
![]() |
0 |
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 | suggested |
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 | suggested |
quantity | num | The quantity of the item is listed here.
| Number | suggested |
How to use:
{{Item | name = | img = | rarity = | num = }}