Template:ItemBox: Difference between revisions
Jump to navigation
Jump to search
m Added a display name param for specific items with clashing names |
darkened background of soul cost for readability, increased vertical spacing for icons |
||
Line 2: | Line 2: | ||
<div style="display:inline-block"> | <div style="display:inline-block"> | ||
{|- style="text-align:center; border-collapse:collapse; border-radius: 7px; width:100px; max-width:200px; height:2px; font-size: 12px;{{ | {|- style="text-align:center; border-collapse:collapse; border-radius: 7px; width:100px; max-width:200px; height:2px; font-size: 12px;{{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type}}}| | ||
| Weapon = background-color: # | | Weapon = background-color: #C97A03; | ||
| Vitality = background-color: # | | Vitality = background-color: #659818; | ||
| Spirit = background-color: # | | Spirit = background-color: #8B56B4; | ||
| background-color: # | | background-color: #C97A03;}}" | ||
! {{souls|{{{item_price}}}}} | ! {{souls|{{{item_price}}}}} | ||
|- style="text-align:center; width:100px; max-width:200px;{{ | |- style="text-align:center; width:100px; max-width:200px; height:60px; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type}}} | ||
| Weapon = background-color: #FCAC4D; color: #3A2B08; | | Weapon = background-color: #FCAC4D; color: #3A2B08; | ||
Line 14: | Line 14: | ||
| Spirit = background-color: #DE9CFF; color: #3C254E; | | Spirit = background-color: #DE9CFF; color: #3C254E; | ||
| background-color: #FCAC4D; color: #3A2B08;}}" | | background-color: #FCAC4D; color: #3A2B08;}}" | ||
| <span style="filter: brightness(0) saturate(100%); transition: 0.1s transform ease-in-out;"{{ | | <span style="filter: brightness(0) saturate(100%); transition: 0.1s transform ease-in-out; "{{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type}}} | ||
| Weapon = color: #3A2B08; | | Weapon = color: #3A2B08; |
Revision as of 11:17, 3 September 2024
A port of the initial box in Template:Infobox item with links, for use on pages that could use it without the whole infobox.
1250 |
---|
Bullet Lifesteal |
500 |
---|
Basic Magazine |
1250 |
---|
Improved Cooldown |
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
item_name | item_name | Name of the item
| String | required |
item_type | item_type | What category of Item is this?
| String | required |
item_price | item_price | How much does this item cost in souls?
| Number | required |
display_name | display_name | The display name of the item (for special cases such as Bullet Lifesteal (item) or Spirit Lifesteal (item))
| String | optional |