Template:ItemBox: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
QuinnBinn (talk | contribs)
m Added a display name param for specific items with clashing names
Shatangmi (talk | contribs)
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: #FCAC4D; color: #3A2B08;
  | Weapon = background-color: #C97A03;
  | Vitality = background-color: #86C921; color: #233A00;
  | Vitality = background-color: #659818;
  | Spirit = background-color: #DE9CFF; color: #3C254E;
  | Spirit = background-color: #8B56B4;
  | background-color: #FCAC4D; color: #3A2B08;}}"
  | 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

Souls{{{item_price}}}
[[File:{{{item_name}}}.png|50px|link={{{item_name}}}]]
[[{{{item_name}}}]]


A port of the initial box in Template:Infobox item with links, for use on pages that could use it without the whole infobox.


Souls1250
Bullet Lifesteal
Souls500
Basic Magazine
Souls1250
Improved Cooldown

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
item_nameitem_name

Name of the item

Example
Basic Magazine
Stringrequired
item_typeitem_type

What category of Item is this?

Suggested values
Weapon Vitality Spirit
Example
Spirit
Stringrequired
item_priceitem_price

How much does this item cost in souls?

Example
500
Numberrequired
display_namedisplay_name

The display name of the item (for special cases such as Bullet Lifesteal (item) or Spirit Lifesteal (item))

Example
Bullet Lifesteal
Stringoptional