Template:Infobox item/doc: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
made some parameters optional
No edit summary
 
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{TS}}
== Usage ==
== Usage ==
'''Note: This template is not intended for direct use.''' Use {{tl|Infobox item/auto}}.
This template creates an infobox for items. It automatically categorizes the pages it is transcluded onto in [[:Category:Items]].
This template creates an infobox for items. It automatically categorizes the pages it is transcluded onto in [[:Category:Items]].


Line 10: Line 13:
{{Infobox item
{{Infobox item
| item_name            = Heroic Aura
| item_name            = Heroic Aura
| item_type            = Weapon
| item_tier            = 3
| souls                = 3,000
| has_passive1        = true
| has_passive2        = false
| has_active1          = true
| has_components      = false
| has_iscomponentof    = false
| item_stat1          = +18% Bullet Lifesteal
| item_stat1          = +18% Bullet Lifesteal
| item_stat2          = +150 Bonus Health
| item_stat2          = +150 Bonus Health
| item_stat3          = +1m/s Move Speed
| item_stat3          = +1m/s Move Speed
| passive1_description = Provides Fire Rate to nearby player minions.
| passive1_description = Provides Fire Rate to nearby player minions.
| passive1_stat1       = +40% Minions Fire Rate (Conditional)
| passive1_main1       = +40% Minions Fire Rate (Conditional)
| passive1_stat2      = 20m Radius
| passive1_alt1        = 20m Radius
| active1_cooldown    = 20s
| active1_cooldown    = 20s
| active1_description  = Provides bonus Move Speed and Fire Rate to you and nearby allies.
| active1_description  = Provides bonus Move Speed and Fire Rate to you and nearby allies.
| active1_stat1       = +2m/s Move Speed (Conditional)
| active1_main1       = +2m/s Move Speed (Conditional)
| active1_stat2       = +25% Fire Rate (Conditional)
| active1_main2       = +25% Fire Rate (Conditional)
| active1_stat3        = 30m Active Radius
| active1_alt1        = 30m Active Radius
| active1_stat4        = 6s Duration
| active1_alt2        = 6s Duration
}}
}}
</pre>
</pre>
Line 35: Line 30:
{{Infobox item
{{Infobox item
| item_name            = Heroic Aura
| item_name            = Heroic Aura
| item_type            = Weapon
| item_tier            = 3
| souls                = 3,000
| has_passive1        = true
| has_passive2        = false
| has_active1          = true
| has_components      = false
| has_iscomponentof    = false
| item_stat1          = +18% Bullet Lifesteal
| item_stat1          = +18% Bullet Lifesteal
| item_stat2          = +150 Bonus Health
| item_stat2          = +150 Bonus Health
| item_stat3          = +1m/s Move Speed
| item_stat3          = +1m/s Move Speed
| passive1_description = Provides Fire Rate to nearby player minions.
| passive1_description = Provides Fire Rate to nearby player minions.
| passive1_stat1       = +40% Minions Fire Rate (Conditional)
| passive1_main1       = +40% Minions Fire Rate (Conditional)
| passive1_stat2      = 20m Radius
| passive1_alt1        = 20m Radius
| active1_cooldown    = 20s
| active1_cooldown    = 20s
| active1_description  = Provides bonus Move Speed and Fire Rate to you and nearby allies.
| active1_description  = Provides bonus Move Speed and Fire Rate to you and nearby allies.
| active1_stat1       = +2m/s Move Speed (Conditional)
| active1_main1       = +2m/s Move Speed (Conditional)
| active1_stat2       = +25% Fire Rate (Conditional)
| active1_main2       = +25% Fire Rate (Conditional)
| active1_stat3        = 30m Active Radius
| active1_alt1        = 30m Active Radius
| active1_stat4        = 6s Duration
| active1_alt2        = 6s Duration
| no_category          = true
| nocat                = true
}}
}}
|-
|-
Line 62: Line 49:
{{Infobox item
{{Infobox item
| item_name          = Cold Front
| item_name          = Cold Front
| item_type          = Spirit
| item_tier          = 2
| souls              = 1,250
| has_passive1        = false
| has_passive2        = false
| has_active1        = true
| has_components      = false
| has_iscomponentof  = false
| item_stat1          = +10% Spirit Resist
| item_stat1          = +10% Spirit Resist
| active1_cooldown    = 28s
| active1_cooldown    = 28s
| active1_description = Release an expanding ice blast that deals '''Spirit Damage''' and '''Slows''' targets it hits. Deals 2x Damage to non-Heroes.
| active1_description = Release an expanding ice blast that deals '''Spirit Damage''' and '''Slows''' targets it hits. Deals 2x Damage to non-Heroes.
| active1_stat1       = 75 Damage
| active1_main1       = 75 Damage
| active1_stat2       = 40% Movement Slow (Conditional)
| active1_main2       = 40% Movement Slow (Conditional)
| active1_stat3      = 14m End Radius
| active1_alt1        = 14m End Radius
| active1_stat4      = 3s Duration
| active1_alt2        = 3s Duration
}}
}}
</pre>
</pre>
Line 82: Line 61:
{{Infobox item
{{Infobox item
| item_name          = Cold Front
| item_name          = Cold Front
| item_type          = Spirit
| item_tier          = 2
| souls              = 1,250
| has_passive1        = false
| has_passive2        = false
| has_active1        = true
| has_components      = false
| has_iscomponentof  = false
| item_stat1          = +10% Spirit Resist
| item_stat1          = +10% Spirit Resist
| active1_cooldown    = 28s
| active1_cooldown    = 28s
| active1_description = Release an expanding ice blast that deals '''Spirit Damage''' and '''Slows''' targets it hits. Deals 2x Damage to non-Heroes.
| active1_description = Release an expanding ice blast that deals '''Spirit Damage''' and '''Slows''' targets it hits. Deals 2x Damage to non-Heroes.
| active1_stat1       = 75 Damage
| active1_main1       = 75 Damage
| active1_stat2       = 40% Movement Slow (Conditional)
| active1_main2       = 40% Movement Slow (Conditional)
| active1_stat3      = 14m End Radius
| active1_alt1        = 14m End Radius
| active1_stat4      = 3s Duration
| active1_alt2        = 3s Duration
| no_category        = true
| nocat              = true
}}
|-
|
<pre>
{{Infobox item
| item_name            = Restorative Locket
| item_type            = Vitality
| item_tier            = 2
| souls                = 1,250
| has_passive1        = true
| has_passive2        = false
| has_active1          = true
| has_components      = false
| has_iscomponentof    = false
| item_stat1          = +10% Spirit Resist
| item_stat2          = +25% Melee Resist
| item_stat3          = +1m/s Sprint Speed
| passive1_description = When an enemy uses an ability within 50m range from you, store one '''Restoration Stack'''.
| active1_cooldown    = 25s
| active1_description  = Consume all stacks to '''heal target ally''' and replenish a '''stamina point'''. Can be self-cast.
| active1_stat1        = 32 Heal per Stack
| active1_stat2        = 15 Max Stacks
}}
</pre>
|
{{Infobox item
| item_name            = Restorative Locket
| item_type            = Vitality
| item_tier            = 2
| souls                = 1,250
| has_passive1        = true
| has_passive2        = false
| has_active1          = true
| has_components      = false
| has_iscomponentof    = false
| item_stat1          = +10% Spirit Resist
| item_stat2          = +25% Melee Resist
| item_stat3          = +1m/s Sprint Speed
| passive1_description = When an enemy uses an ability within 50m range from you, store one '''Restoration Stack'''.
| active1_cooldown    = 25s
| active1_description  = Consume all stacks to '''heal target ally''' and replenish a '''stamina point'''. Can be self-cast.
| active1_stat1        = 32 Heal per Stack
| active1_stat2        = 15 Max Stacks
| no_category          = true
}}
}}
|}
|}
<templatedata>
<templatedata>
{
{
"description": " ",
"params": {
"params": {
"souls": {
"souls": {
"type": "number",
"type": "number",
"default": "3,000",
"default": "500",
"description": "Souls cost."
"description": "Souls cost."
},
},
"item_name": {
"item_name": {
"type": "wiki-page-name",
"description": "Item name in english, used to autofill table",
"description": "Item name."
},
"has_passive1": {
"type": "boolean",
"default": "false",
"required": true,
"required": true,
"suggestedvalues": [
"type": "string"
"true",
"false"
],
"description": "If the item has a passive section."
},
},
"has_active1": {
"item_name_loc": {
"type": "boolean",
"description": "Localized item name",
"default": "false",
"type": "string"
"required": true,
"suggestedvalues": [
"true",
"false"
],
"description": "If the item has an active section."
},
},
"has_iscomponentof": {
"street_brawl": {
"type": "boolean",
"type": "boolean",
"default": "false",
"default": "false",
"required": true,
"suggestedvalues": [
"suggestedvalues": [
"true",
"true",
"false"
"false"
],
],
"description": "If the item is a component of X."
"description": "If it's a street brawl item, hide cost and tier"
},
},
"passive1_description": {
"passive1_description": {
Line 192: Line 104:
"type": "string"
"type": "string"
},
},
"has_components": {
"component1_name": {
"type": "boolean",
"type": "string",
"default": "false",
"default": "Basic Magazine",
"suggestedvalues": [
"description": "Name of the component item it builds from."
"true",
"false"
],
"description": "If the item has a component.",
"required": true
},
},
"component1_name": {
"component2_name": {
"type": "string",
"type": "string",
"default": "Basic Magazine",
"default": "Basic Magazine",
"description": "Name of the component."
"description": "Name of the other component item it builds from."
},
},
"iscomponentof1_name": {
"iscomponentof1_name": {
"type": "string",
"type": "string",
"description": "Name of the component."
"description": "Name of the item it builds to."
},
"iscomponentof2_name": {
"type": "string",
"description": "Name of the 2nd item it builds to."
},
"iscomponentof3_name": {
"type": "string",
"description": "Name of the 3rd item it builds to."
},
},
"item_description": {
"item_description": {
"type": "string",
"type": "string",
"suggested": true,
"description": "Item description."
"description": "Item description."
},
},
Line 226: Line 142:
"passive1_cooldown": {
"passive1_cooldown": {
"type": "number"
"type": "number"
},
"passive1_chargeup": {
"type": "number",
"description": "If the passive has a charge-up stat."
},
},
"active1_stat1": {
"active1_stat1": {
Line 306: Line 226:
],
],
"description": "Item tier."
"description": "Item tier."
},
"has_passive2": {
"type": "boolean",
"default": "false",
"required": true,
"suggestedvalues": [
"true",
"false"
],
"description": "If the item has a second passive section."
},
},
"item_icon": {
"item_icon": {
Line 321: Line 231:
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"no_category": {
"nocat": {
"description": "Sets whether this should categorize [[:Category:Items]] onto the transcluded page.",
"description": "Sets whether this should categorize [[:Category:Items]] onto the transcluded page.",
"type": "boolean",
"type": "boolean",
Line 336: Line 246:
},
},
"sound2": {
"sound2": {
"type": "wiki-file-name",
"description": "Sound file name."
},
"sound3": {
"type": "wiki-file-name",
"type": "wiki-file-name",
"description": "Sound file name."
"description": "Sound file name."
Line 366: Line 280:
"type": "string"
"type": "string"
},
},
"key": {
"active1_stat7": {
"description": "Autofills table contents",
"type": "string"
"suggested": true,
},
"active1_stat8": {
"type": "string"
"type": "string"
        }
}
},
},
"paramOrder": [
"paramOrder": [
        "key",
"item_name",
"item_name_loc",
"item_icon",
"item_icon",
"item_name",
"street_brawl",
"item_type",
"item_type",
"item_tier",
"item_tier",
"souls",
"souls",
"has_passive1",
"has_passive2",
"has_active1",
"has_components",
"has_iscomponentof",
"component1_name",
"component1_name",
"component2_name",
"item_description",
"item_description",
"item_stat1",
"item_stat1",
Line 394: Line 306:
"item_stat7",
"item_stat7",
"passive1_cooldown",
"passive1_cooldown",
"passive1_chargeup",
"passive1_description",
"passive1_description",
"passive1_stat1",
"passive1_stat1",
Line 416: Line 329:
"active1_stat5",
"active1_stat5",
"active1_stat6",
"active1_stat6",
"active1_stat7",
"active1_stat8",
"active2_description",
"active2_description",
"active2_stat1",
"active2_stat1",
Line 423: Line 338:
"active2_stat5",
"active2_stat5",
"iscomponentof1_name",
"iscomponentof1_name",
"iscomponentof2_name",
"iscomponentof3_name",
"sound1",
"sound1",
"sound2",
"sound2",
"no_category"
"sound3",
"nocat"
],
],
"description": " ",
"description": "Infobox for Deadlock items. Meant to be used with Infobox item/auto",
"format": "block"
"format": "block"
}
}
</templatedata><includeonly>[[Category:Infobox templates]]</includeonly>
</templatedata><includeonly>[[Category:Infobox templates]]</includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 19:12, 28 June 2026

CSS3 logo.svg
This template uses CSS found at Infobox item/styles.css.

Note: This template is not intended for direct use. Use {{Infobox item/auto}}.

This template creates an infobox for items. It automatically categorizes the pages it is transcluded onto in Category:Items.

Examples

[edit source]
Code Output
{{Infobox item
| item_name            = Heroic Aura
| item_stat1           = +18% Bullet Lifesteal
| item_stat2           = +150 Bonus Health
| item_stat3           = +1m/s Move Speed
| passive1_description = Provides Fire Rate to nearby player minions.
| passive1_main1       = +40% Minions Fire Rate (Conditional)
| passive1_alt1        = 20m Radius
| active1_cooldown     = 20s
| active1_description  = Provides bonus Move Speed and Fire Rate to you and nearby allies.
| active1_main1        = +2m/s Move Speed (Conditional)
| active1_main2        = +25% Fire Rate (Conditional)
| active1_alt1         = 30m Active Radius
| active1_alt2         = 6s Duration
}}
Heroic Aura
Image for the Deadlock item Heroic Aura
Cost Souls3,200
Tier 3
+18% Bullet Lifesteal
+150 Bonus Health
+1m/s Move Speed
Passive
Provides Fire Rate to nearby player minions.
+40% Minions Fire Rate (Conditional)
20m Radius
Active 20s
Provides bonus Move Speed and Fire Rate to you and nearby allies.
+2m/s Move Speed (Conditional)
+25% Fire Rate (Conditional)
30m Active Radius
6s Duration
Internal name: upgrade_dps_aura
{{Infobox item
| item_name           = Cold Front
| item_stat1          = +10% Spirit Resist
| active1_cooldown    = 28s
| active1_description = Release an expanding ice blast that deals '''Spirit Damage''' and '''Slows''' targets it hits. Deals 2x Damage to non-Heroes.
| active1_main1       = 75 Damage
| active1_main2       = 40% Movement Slow (Conditional)
| active1_alt1        = 14m End Radius
| active1_alt2        = 3s Duration
}}
Cold Front
Image for the Deadlock item Cold Front
Cost Souls1,600
Tier 2
+10% Spirit Resist
Active 28s
Release an expanding ice blast that deals Spirit Damage and Slows targets it hits. Deals 2x Damage to non-Heroes.
75 Damage
40% Movement Slow (Conditional)
14m End Radius
3s Duration
Internal name: upgrade_cold_front

Infobox for Deadlock items. Meant to be used with Infobox item/auto

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
item_nameitem_name

Item name in english, used to autofill table

Stringrequired
item_name_locitem_name_loc

Localized item name

Stringoptional
item_iconitem_icon

Custom file.

Fileoptional
street_brawlstreet_brawl

If it's a street brawl item, hide cost and tier

Suggested values
true false
Default
false
Booleanoptional
item_typeitem_type

Item type.

Suggested values
Weapon Vitality Spirit
Stringoptional
item_tieritem_tier

Item tier.

Suggested values
1 2 3 4
Default
1
Numberoptional
soulssouls

Souls cost.

Default
500
Numberoptional
component1_namecomponent1_name

Name of the component item it builds from.

Default
Basic Magazine
Stringoptional
component2_namecomponent2_name

Name of the other component item it builds from.

Default
Basic Magazine
Stringoptional
item_descriptionitem_description

Item description.

Stringsuggested
item_stat1item_stat1

no description

Stringoptional
item_stat2item_stat2

no description

Stringoptional
item_stat3item_stat3

no description

Stringoptional
item_stat4item_stat4

no description

Stringoptional
item_stat5item_stat5

no description

Stringoptional
item_stat6item_stat6

no description

Stringoptional
item_stat7item_stat7

no description

Stringoptional
passive1_cooldownpassive1_cooldown

no description

Numberoptional
passive1_chargeuppassive1_chargeup

If the passive has a charge-up stat.

Numberoptional
passive1_descriptionpassive1_description

no description

Stringoptional
passive1_stat1passive1_stat1

no description

Stringoptional
passive1_stat2passive1_stat2

no description

Stringoptional
passive1_stat3passive1_stat3

no description

Stringoptional
passive1_stat4passive1_stat4

no description

Stringoptional
passive1_stat5passive1_stat5

no description

Stringoptional
passive1_stat6passive1_stat6

no description

Stringoptional
passive2_cooldownpassive2_cooldown

no description

Numberoptional
passive2_descriptionpassive2_description

no description

Stringoptional
passive2_stat1passive2_stat1

no description

Stringoptional
passive2_stat2passive2_stat2

no description

Stringoptional
passive2_stat3passive2_stat3

no description

Stringoptional
passive2_stat4passive2_stat4

no description

Stringoptional
passive2_stat5passive2_stat5

no description

Stringoptional
active1_cooldownactive1_cooldown

no description

Numberoptional
active1_descriptionactive1_description

no description

Stringoptional
active1_stat1active1_stat1

no description

Stringoptional
active1_stat2active1_stat2

no description

Stringoptional
active1_stat3active1_stat3

no description

Stringoptional
active1_stat4active1_stat4

no description

Stringoptional
active1_stat5active1_stat5

no description

Stringoptional
active1_stat6active1_stat6

no description

Stringoptional
active1_stat7active1_stat7

no description

Stringoptional
active1_stat8active1_stat8

no description

Stringoptional
active2_descriptionactive2_description

no description

Stringoptional
active2_stat1active2_stat1

no description

Stringoptional
active2_stat2active2_stat2

no description

Stringoptional
active2_stat3active2_stat3

no description

Stringoptional
active2_stat4active2_stat4

no description

Stringoptional
active2_stat5active2_stat5

no description

Stringoptional
iscomponentof1_nameiscomponentof1_name

Name of the item it builds to.

Stringoptional
iscomponentof2_nameiscomponentof2_name

Name of the 2nd item it builds to.

Stringoptional
iscomponentof3_nameiscomponentof3_name

Name of the 3rd item it builds to.

Stringoptional
sound1sound1

Sound file name.

Fileoptional
sound2sound2

Sound file name.

Fileoptional
sound3sound3

Sound file name.

Fileoptional
nocatnocat

Sets whether this should categorize [[:Category:Items]] onto the transcluded page.

Suggested values
true
Booleanoptional