Template:ItemBox: Difference between revisions
Jump to navigation
Jump to search
m Made item name into links |
m Added a display name param for specific items with clashing names |
||
Line 27: | Line 27: | ||
| Spirit = background-color: #FFEFD7; color: #131610; | | Spirit = background-color: #FFEFD7; color: #131610; | ||
| background-color: #FFF0D7; color: #151912;}}" | | background-color: #FFF0D7; color: #151912;}}" | ||
! [[{{{item_name}}}]] | ! {{#if:{{{display_name|}}}|[[{{{item_name}}}|{{{display_name}}}]]|[[{{{item_name}}}]]}} | ||
|}</div></onlyinclude> | |}</div></onlyinclude> | ||
Line 33: | Line 33: | ||
A port of the initial box in [[Template:Infobox item]] with links, for use on pages that could use it without the whole infobox. | A port of the initial box in [[Template:Infobox item]] with links, for use on pages that could use it without the whole infobox. | ||
{{ItemBox|item_name = | {{ItemBox|item_name = Bullet Lifesteal (item)|item_type = Vitality|item_price = 1250|display_name = Bullet Lifesteal}} {{ItemBox|item_name = Basic Magazine|item_type = Weapon|item_imagefilepath = Basic Magazine|item_price = 500}} {{ItemBox|item_name = Improved Cooldown|item_type = Spirit|item_price = 1250}} | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"item_type": { | |||
"description": "What category of Item is this?", | |||
"example": "Spirit", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"Weapon", | |||
"Vitality", | |||
"Spirit" | |||
], | |||
"required": true | |||
}, | |||
"item_price": { | |||
"description": "How much does this item cost in souls?", | |||
"example": "500", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"item_name": { | |||
"description": "Name of the item", | |||
"example": "Basic Magazine", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"display_name": { | |||
"description": "The display name of the item (for special cases such as Bullet Lifesteal (item) or Spirit Lifesteal (item))", | |||
"example": "Bullet Lifesteal", | |||
"type": "string" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"item_name", | |||
"item_type", | |||
"item_price", | |||
"display_name" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 08:01, 2 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 |