Editing
User:Saag/ItemBox
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<onlyinclude> <div style="display:inline-block; margin-left: 5px"> {|- style="text-align:center; border-collapse:collapse; border-radius: 7px; width:100px; max-width:200px; height:2px; font-size: 12px;{{ #switch: {{#if: {{{item_type|}}}|{{{item_type}}}|{{#invoke:ItemData|get_type|{{{item_name}}}}}}} | Weapon = background-color: #C97A03; | Vitality = background-color: #659818; | Spirit = background-color: #8B56B4; | background-color: #C97A03;}}" ! {{souls|{{#if: {{{item_price|}}}|{{{item_price}}}|{{#invoke:ItemData|get_cost|{{{item_name}}}}}}}}} |- style="text-align:center; width:100px; max-width:200px; height:60px; {{ #switch: {{#if: {{{item_type|}}}|{{{item_type}}}|{{#invoke:ItemData|get_type|{{{item_name}}}}}}} | Weapon = background-color: #FCAC4D; color: #3A2B08; | Vitality = background-color: #86C921; color: #233A00; | Spirit = background-color: #DE9CFF; color: #3C254E; | background-color: #FCAC4D; color: #3A2B08;}}" | <span style="filter: brightness(0) saturate(100%); transition: 0.1s transform ease-in-out;" {{ #switch: {{#if: {{{item_type|}}}|{{{item_type}}}|{{#invoke:ItemData|get_type|{{{item_name}}}}}}} | Weapon = color: #3A2B08; | Vitality = color: #233A00; | Spirit = color: #3C254E; | color: #3A2B08;}}">[[File:{{{item_name}}}.png|50px|link={{{item_name}}}]]</span>{{#if: {{{active|}}}|<div style="position: relative; display: flex; justify-content: center; align-items: center;"><div style="background-color: #161A13; color: #FFFFF5; border-radius:5px; padding: 1px 8px 1px 8px; font-size:10px; margin: 0; width: 40px; height: 14px; position: absolute; bottom: -14px">'''ACTIVE'''</div></div>}} {{#if:{{#invoke:ItemData|get_component_name|{{{item_name}}}}}|<div style="position: relative; display: flex; justify-content: center; align-items: center;"><div style="background-color: #161A13; color: #FFFFF5; border-radius:50%; padding: 5px; font-size:10px; margin: 0; width: 20px; height: 20px; position: absolute; bottom: -7px; right: 3px;{{ #switch: {{#if: {{{item_type|}}}|{{{item_type}}}|{{#invoke:ItemData|get_type|{{{item_name}}}}}}} | Weapon = background-color: #FFF0D7; color: #151912; | Vitality = background-color: #FFFFE7; color: #1C1E18; | Spirit = background-color: #FFEFD7; color: #131610; | background-color: #FFF0D7; color: #151912;}}">{{Icon/Black|[[File:{{#invoke:ItemData|get_component_name|{{{item_name}}}}}.png|20px|link={{#invoke:ItemData|get_component_name|{{{item_name}}}}}]]}}</div></div> }} |- style="text-align: center; height:60px; font-size: 14px; {{ #switch: {{#if: {{{item_type|}}}|{{{item_type}}}|{{#invoke:ItemData|get_type|{{{item_name}}}}}}} | Weapon = background-color: #FFF0D7; color: #151912; | Vitality = background-color: #FFFFE7; color: #1C1E18; | Spirit = background-color: #FFEFD7; color: #131610; | background-color: #FFF0D7; color: #151912;}}" ! {{#if:{{{display_name|}}}|[[{{{item_name}}}|{{{display_name}}}]]|[[{{{item_name}}}]]}} |}</div></onlyinclude> A port of the initial box in [[Template:Infobox item]] with links, for use on pages that could use it without the whole infobox. {{#invoke:ItemData|get_prop|Titanic Magazine|Cost}} {{User:Saag/ItemBox|item_name=Basic Magazine|item_price=500}} {{User:Saag/ItemBox|item_name = Debuff Remover|item_price=4250|active=true|componentOf=Debuff Reducer}} {{User:Saag/ItemBox|item_name = Alchemical Fire|item_price = 1234|active=true}} {{User:Saag/ItemBox|item_name = Titanic Magazine}} <noinclude> <templatedata> { "params": { "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" }, "componentOf": { "description": "The name of the item this is a component of, for linking", "example": "Headhunter", "type": "string" }, "item_type": { "description": "Overrides default item type. See Module:ItemData", "example": "Spirit", "type": "string", "suggestedvalues": [ "Weapon", "Vitality", "Spirit" ] }, "item_price": { "description": "Overrides default item price. See Module:ItemData", "example": "500", "type": "number" }, "active": { "description": "Overrides default item active status. See Module:ItemData", "example": "true", "type": "boolean" } }, "paramOrder": [ "item_name", "display_name", "componentOf", "item_type", "item_price", "active" ] } </templatedata> </noinclude>
Summary:
Please note that all contributions to Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Deadlock:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Data:ItemData.json
(
edit
)
User:Saag/ItemBox
(
edit
)
Template:Icon/Black
(
edit
)
Template:Souls
(
edit
)
Module:ItemData
(
edit
)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
User page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Discord community
Recent changes
Random page
Tools
What links here
Related changes
User contributions
Logs
View user groups
Special pages
Page information
Languages