Template:ItemBox: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m Added some more examples |
m removed active and componentOf params from docs, as they are no longer used |
||
| Line 39: | Line 39: | ||
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. | ||
All data for each item is populated using data from [[Data:ItemData.json]] | |||
{{ItemBox|item_name = Basic Magazine}} | {{ItemBox|item_name = Basic Magazine}} | ||
| Line 60: | Line 62: | ||
"description": "The display name of the item (for special cases such as Bullet Lifesteal (item) or Spirit Lifesteal (item))", | "description": "The display name of the item (for special cases such as Bullet Lifesteal (item) or Spirit Lifesteal (item))", | ||
"example": "Bullet Lifesteal", | "example": "Bullet Lifesteal", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
| Line 81: | Line 78: | ||
"example": "500", | "example": "500", | ||
"type": "number" | "type": "number" | ||
} | } | ||
}, | }, | ||
| Line 91: | Line 83: | ||
"item_name", | "item_name", | ||
"display_name", | "display_name", | ||
"item_type", | "item_type", | ||
"item_price | "item_price" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 23:41, 9 September 2024
| [[File:{{{item_name}}}.png|50px|link={{{item_name}}}]]
[[File:Item Not Found..png|20px|link=Item Not Found.]] |
| [[{{{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.
All data for each item is populated using data from Data:ItemData.json
[[File:Item Not Found..png|20px|link=Item Not Found.]] |
| Basic Magazine |
| Titanic Magazine |
|---|
ACTIVE |
| Shadow Weave |
[[File:Item Not Found..png|20px|link=Item Not Found.]] |
| Debuff Remover |
| Duration Extender |
|---|
| Improved Spirit |
|---|
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| item_name | item_name | Name of the item
| String | 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 |
| item_type | item_type | Overrides default item type. See Module:ItemData
| String | optional |
| item_price | item_price | Overrides default item price. See Module:ItemData
| Number | optional |