Template:Infobox item/doc: Difference between revisions

mNo edit summary
No edit summary
 
(25 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]].


== Examples ==
== Examples ==
{| class=wikitable
{| class="wikitable"
! Code !! Output
! Code !! Output
|-
|-
Line 9: Line 12:
<pre>
<pre>
{{Infobox item
{{Infobox item
|item_imagefilepath=Heroic Aura
| item_name           = Heroic Aura
|item_name=Heroic Aura
| item_stat1           = +18% Bullet Lifesteal
|item_type=Weapon
| item_stat2           = +150 Bonus Health
|item_tier=3
| item_stat3           = +1m/s Move Speed
|has_components=true
| passive1_description = Provides Fire Rate to nearby player minions.
|component1_name=Basic Magazine
| passive1_main1      = +40% Minions Fire Rate (Conditional)
|has_passive1=true
| passive1_alt1        = 20m Radius
|has_active1=true
| active1_cooldown    = 20s
|has_iscomponentof=true
| active1_description = Provides bonus Move Speed and Fire Rate to you and nearby allies.
|iscomponentof1_name=Headhunter
| active1_main1        = +2m/s Move Speed (Conditional)
|item_stat1=+20% [[Bullet Lifesteal]]
| active1_main2        = +25% Fire Rate (Conditional)
|item_stat2=+150 Bonus [[Health]]
| active1_alt1        = 30m Active Radius
|item_stat3=+1m/s [[Move Speed]]
| active1_alt2        = 6s Duration
|souls=3,000
|passive1_description=Provides [[Fire Rate]] to nearby player [[minion]]s.
|passive1_cooldown=
|passive1_stat1=+40% Minions Fire Rate
(Conditional)
|passive1_stat2=20m Radius
|active1_description=Provides bonus Movement Speed and Fire Rate to you and nearby allies.
|active1_cooldown=30s
|active1_stat1=+3m/s Movement Speed
(Conditional)
|active1_stat2=+25% Fire Rate
(Conditional)
|active1_stat3=30m Active Radius
|active1_stat4=6s Duration
}}
}}
</pre>
</pre>
|
|
{{Infobox item
{{Infobox item
|item_imagefilepath=Heroic Aura
| item_name           = Heroic Aura
|item_name=Heroic Aura
| item_stat1           = +18% Bullet Lifesteal
|item_type=Weapon
| item_stat2           = +150 Bonus Health
|item_tier=3
| item_stat3           = +1m/s Move Speed
|has_components=true
| passive1_description = Provides Fire Rate to nearby player minions.
|component1_name=Basic Magazine
| passive1_main1      = +40% Minions Fire Rate (Conditional)
|has_passive1=true
| passive1_alt1        = 20m Radius
|has_active1=true
| active1_cooldown    = 20s
|has_iscomponentof=true
| active1_description = Provides bonus Move Speed and Fire Rate to you and nearby allies.
|iscomponentof1_name=Headhunter
| active1_main1        = +2m/s Move Speed (Conditional)
|item_stat1=+20% [[Bullet Lifesteal]]
| active1_main2        = +25% Fire Rate (Conditional)
|item_stat2=+150 Bonus [[Health]]
| active1_alt1        = 30m Active Radius
|item_stat3=+1m/s [[Move Speed]]
| active1_alt2        = 6s Duration
|souls=3,000
| nocat                = true
|passive1_description=Provides [[Fire Rate]] to nearby player [[minion]]s.
|passive1_cooldown=
|passive1_stat1=+40% Minions Fire Rate
(Conditional)
|passive1_stat2=20m Radius
|active1_description=Provides bonus Movement Speed and Fire Rate to you and nearby allies.
|active1_cooldown=30s
|active1_stat1=+3m/s Movement Speed
(Conditional)
|active1_stat2=+25% Fire Rate
(Conditional)
|active1_stat3=30m Active Radius
|active1_stat4=6s Duration
}}
}}
|-
|-
Line 72: Line 48:
<pre>
<pre>
{{Infobox item
{{Infobox item
|item_imagefilepath=Heroic Aura
| item_name           = Cold Front
|item_name=Soul Shredder Bullets
| item_stat1          = +10% Spirit Resist
|item_type=Spirit
| active1_cooldown    = 28s
|item_tier=3
| active1_description = Release an expanding ice blast that deals '''Spirit Damage''' and '''Slows''' targets it hits. Deals 2x Damage to non-Heroes.
|souls = 2,555
| active1_main1      = 75 Damage
|has_components=true
| active1_main2      = 40% Movement Slow (Conditional)
|component1_name=Basic Magazine
| active1_alt1        = 14m End Radius
|item_description=Increases the range and effect radius of your abilities and items.
| active1_alt2        = 3s Duration
| item_stat1 = +15% [[Ability Range]]
| item_stat2 = +7% [[Bullet Resist]]
|has_passive1=true
|has_active1=true
|has_iscomponentof=true
|iscomponentof1_name=Refresher
}}
}}
</pre>
</pre>
|
|
{{Infobox item
{{Infobox item
|item_imagefilepath=Heroic Aura
| item_name           = Cold Front
|item_name=Soul Shredder Bullets
| item_stat1         = +10% Spirit Resist
|item_type=Spirit
| active1_cooldown    = 28s
|item_tier=3
| active1_description = Release an expanding ice blast that deals '''Spirit Damage''' and '''Slows''' targets it hits. Deals 2x Damage to non-Heroes.
|souls = 2,555
| active1_main1      = 75 Damage
|has_components=true
| active1_main2      = 40% Movement Slow (Conditional)
|component1_name=Basic Magazine
| active1_alt1        = 14m End Radius
|item_description=Increases the range and effect radius of your abilities and items.
| active1_alt2        = 3s Duration
| item_stat1 = +15% [[Ability Range]]
| nocat              = true
| item_stat2 = +7% [[Bullet Resist]]
|has_passive1=true
|has_active1=true
|has_iscomponentof=true
|iscomponentof1_name=Refresher
}}
|-
|
<pre>
{{Infobox item
|item_imagefilepath=Restorative Locket
|item_name=Restorative Locket
|item_type=Vitality
|item_tier=2
|has_components=false
|has_passive1=true
|has_passive2=false|has_active1=true
|has_iscomponentof=false
|item_stat1=+10% [[Spirit Resist]]
|item_stat2=+5 [[Spirit Power]]
|item_stat3=+1m/s [[Sprint Speed]]
|souls=1,250
|passive1_description=When an enemy uses an ability within 50m range from you, store one Restoration Stack.
|passive1_cooldown=
|active1_description=Consume all stacks to heal target ally and replenish a stamina point. Can be self-cast.
|active1_cooldown=30s
|active1_stat1=+35 Heal per Stack
|active1_stat2=15 Max Stacks
}}
</pre>
|
{{Infobox item
|item_imagefilepath=Restorative Locket
|item_name=Restorative Locket
|item_type=Vitality
|item_tier=2
|has_components=false
|has_passive1=true
|has_passive2=false|has_active1=true
|has_iscomponentof=false
|item_stat1=+10% [[Spirit Resist]]
|item_stat2=+5 [[Spirit Power]]
|item_stat3=+1m/s [[Sprint Speed]]
|souls=1,250
|passive1_description=When an enemy uses an ability within 50m range from you, store one Restoration Stack.
|passive1_cooldown=
|active1_description=Consume all stacks to heal target ally and replenish a stamina point. Can be self-cast.
|active1_cooldown=30s
|active1_stat1=+35 Heal per Stack
|active1_stat2=15 Max Stacks
}}
}}
|}
|}
<templatedata>
<templatedata>
{
{
"description": " ",
"params": {
"params": {
"souls": {
"souls": {
"type": "number",
"type": "number",
"required": true,
"default": "500",
"default": "3,000"
"description": "Souls cost."
},
},
"item_name": {
"item_name": {
"type": "wiki-page-name",
"description": "Item name in english, used to autofill table",
"required": true
},
"has_passive1": {
"type": "string",
"default": "false",
"autovalue": "false",
"required": true,
"required": true,
"suggestedvalues": [
"type": "string"
"true",
"false"
]
},
},
"has_active1": {
"item_name_loc": {
"type": "string",
"description": "Localized item name",
"default": "false",
"type": "string"
"autovalue": "false",
"required": true,
"suggestedvalues": [
"true",
"false"
]
},
},
"has_iscomponentof": {
"street_brawl": {
"type": "string",
"type": "boolean",
"default": "false",
"default": "false",
"autovalue": "false",
"required": true,
"suggestedvalues": [
"suggestedvalues": [
"true",
"true",
"false"
"false"
]
],
"description": "If it's a street brawl item, hide cost and tier"
},
},
"passive1_description": {
"passive1_description": {
Line 199: Line 104:
"type": "string"
"type": "string"
},
},
"has_components": {
"component1_name": {
"type": "boolean",
"type": "string",
"default": "false",
"default": "Basic Magazine",
"autovalue": "false",
"description": "Name of the component item it builds from."
"suggestedvalues": [
"true",
"false"
]
},
},
"component1_name": {
"component2_name": {
"type": "string",
"type": "string",
"default": "Basic Magazine"
"default": "Basic Magazine",
"description": "Name of the other component item it builds from."
},
},
"iscomponentof1_name": {
"iscomponentof1_name": {
"type": "wiki-page-name"
"type": "string",
"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."
},
},
"item_stat3": {
"item_stat3": {
Line 229: 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 279: Line 196:
},
},
"item_stat1": {
"item_stat1": {
"type": "string",
"type": "string"
"suggested": true
},
},
"item_stat2": {
"item_stat2": {
Line 298: Line 214:
"Spirit"
"Spirit"
],
],
"required": true
"description": "Item type."
},
},
"item_tier": {
"item_tier": {
"type": "number",
"type": "number",
"default": "1",
"default": "1",
"autovalue": "1",
"suggested": true,
"suggestedvalues": [
"suggestedvalues": [
"1",
"1",
Line 310: Line 224:
"3",
"3",
"4"
"4"
]
],
"description": "Item tier."
},
"item_icon": {
"description": "Custom file.",
"type": "wiki-file-name"
},
},
"has_passive2": {
"nocat": {
"type": "string",
"description": "Sets whether this should categorize [[:Category:Items]] onto the transcluded page.",
"default": "false",
"type": "boolean",
"autovalue": "false",
"required": true,
"suggestedvalues": [
"suggestedvalues": [
"true",
"true"
"false"
]
]
},
},
"item_icon": {},
"passive1_stat6": {
"no_category": {
"type": "string"
"description": "Sets whether this should categorize [[:Category:Items]] onto the transcluded page.",
},
"type": "boolean"
"sound1": {
"type": "wiki-file-name",
"description": "Sound file name."
},
"sound2": {
"type": "wiki-file-name",
"description": "Sound file name."
},
"sound3": {
"type": "wiki-file-name",
"description": "Sound file name."
},
"item_stat6": {
"type": "string"
},
"item_stat7": {
"type": "string"
},
"active1_stat6": {
"type": "string"
},
"active2_description": {
"type": "string"
},
"active2_stat1": {
"type": "string"
},
"active2_stat2": {
"type": "string"
},
"active2_stat3": {
"type": "string"
},
"active2_stat4": {
"type": "string"
},
"active2_stat5": {
"type": "string"
},
"active1_stat7": {
"type": "string"
},
},
"passive1_stat6": {},
"active1_stat8": {
"sound1": {},
"type": "string"
"sound2": {}
}
},
},
"paramOrder": [
"paramOrder": [
"item_name",
"item_name_loc",
"item_icon",
"item_icon",
"item_name",
"street_brawl",
"item_type",
"item_type",
"item_tier",
"item_tier",
"souls",
"souls",
"has_components",
"component1_name",
"component1_name",
"has_passive1",
"component2_name",
"has_passive2",
"has_active1",
"has_iscomponentof",
"item_description",
"item_description",
"item_stat1",
"item_stat1",
Line 349: Line 303:
"item_stat4",
"item_stat4",
"item_stat5",
"item_stat5",
"item_stat6",
"item_stat7",
"passive1_cooldown",
"passive1_chargeup",
"passive1_description",
"passive1_description",
"passive1_cooldown",
"passive1_stat1",
"passive1_stat1",
"passive1_stat2",
"passive1_stat2",
Line 357: Line 314:
"passive1_stat5",
"passive1_stat5",
"passive1_stat6",
"passive1_stat6",
"passive2_cooldown",
"passive2_description",
"passive2_description",
"passive2_cooldown",
"passive2_stat1",
"passive2_stat1",
"passive2_stat2",
"passive2_stat2",
Line 364: Line 321:
"passive2_stat4",
"passive2_stat4",
"passive2_stat5",
"passive2_stat5",
"active1_cooldown",
"active1_description",
"active1_description",
"active1_cooldown",
"active1_stat1",
"active1_stat1",
"active1_stat2",
"active1_stat2",
Line 371: Line 328:
"active1_stat4",
"active1_stat4",
"active1_stat5",
"active1_stat5",
"active1_stat6",
"active1_stat7",
"active1_stat8",
"active2_description",
"active2_stat1",
"active2_stat2",
"active2_stat3",
"active2_stat4",
"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>