Template:Infobox item/doc: Difference between revisionsGive feedback
m update examples |
Gammaton32 (talk | contribs) No edit summary |
||
| (23 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_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_main1 = +40% Minions Fire Rate (Conditional) | ||
| | | 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_main1 = +2m/s Move Speed (Conditional) | ||
| | | active1_main2 = +25% Fire Rate (Conditional) | ||
| | | active1_alt1 = 30m Active Radius | ||
| | | active1_alt2 = 6s Duration | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 35: | Line 30: | ||
{{Infobox item | {{Infobox item | ||
| item_name = Heroic Aura | | item_name = Heroic Aura | ||
| 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_main1 = +40% Minions Fire Rate (Conditional) | ||
| | | 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_main1 = +2m/s Move Speed (Conditional) | ||
| | | active1_main2 = +25% Fire Rate (Conditional) | ||
| | | active1_alt1 = 30m Active Radius | ||
| | | active1_alt2 = 6s Duration | ||
| | | nocat = true | ||
}} | }} | ||
|- | |- | ||
| Line 62: | Line 49: | ||
{{Infobox item | {{Infobox item | ||
| item_name = Cold Front | | item_name = Cold Front | ||
| 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_main1 = 75 Damage | ||
| | | active1_main2 = 40% Movement Slow (Conditional) | ||
| | | active1_alt1 = 14m End Radius | ||
| | | active1_alt2 = 3s Duration | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 82: | Line 61: | ||
{{Infobox item | {{Infobox item | ||
| item_name = Cold Front | | item_name = Cold Front | ||
| 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_main1 = 75 Damage | ||
| | | active1_main2 = 40% Movement Slow (Conditional) | ||
| | | active1_alt1 = 14m End Radius | ||
| | | active1_alt2 = 3s Duration | ||
| | | nocat = true | ||
}} | }} | ||
|} | |} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " ", | |||
"params": { | "params": { | ||
"souls": { | "souls": { | ||
"type": "number", | "type": "number", | ||
" | "default": "500", | ||
" | "description": "Souls cost." | ||
}, | }, | ||
"item_name": { | "item_name": { | ||
" | "description": "Item name in english, used to autofill table", | ||
"required": true, | "required": true, | ||
" | "type": "string" | ||
}, | }, | ||
" | "item_name_loc": { | ||
" | "description": "Localized item name", | ||
" | "type": "string" | ||
}, | }, | ||
" | "street_brawl": { | ||
"type": " | "type": "boolean", | ||
"default": "false", | "default": "false", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"true", | "true", | ||
"false" | "false" | ||
] | ], | ||
"description": "If it's a street brawl item, hide cost and tier" | |||
}, | }, | ||
"passive1_description": { | "passive1_description": { | ||
| Line 192: | Line 104: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "component1_name": { | ||
"type": " | "type": "string", | ||
"default": " | "default": "Basic Magazine", | ||
" | "description": "Name of the component item it builds from." | ||
}, | }, | ||
" | "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": " | "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 222: | 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 272: | Line 196: | ||
}, | }, | ||
"item_stat1": { | "item_stat1": { | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"item_stat2": { | "item_stat2": { | ||
| Line 291: | Line 214: | ||
"Spirit" | "Spirit" | ||
], | ], | ||
" | "description": "Item type." | ||
}, | }, | ||
"item_tier": { | "item_tier": { | ||
"type": "number", | "type": "number", | ||
"default": "1", | "default": "1", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"1", | "1", | ||
| Line 303: | Line 224: | ||
"3", | "3", | ||
"4" | "4" | ||
] | ], | ||
"description": "Item tier." | |||
}, | |||
"item_icon": { | |||
"description": "Custom file.", | |||
"type": "wiki-file-name" | |||
}, | }, | ||
" | "nocat": { | ||
" | "description": "Sets whether this should categorize [[:Category:Items]] onto the transcluded page.", | ||
"type": "boolean", | |||
" | |||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"true | "true" | ||
] | ] | ||
}, | }, | ||
" | "passive1_stat6": { | ||
" | "type": "string" | ||
"description": " | }, | ||
"type": " | "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" | |||
}, | }, | ||
" | "active1_stat8": { | ||
"type": "string" | |||
} | |||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"item_name", | |||
"item_name_loc", | |||
"item_icon", | "item_icon", | ||
" | "street_brawl", | ||
"item_type", | "item_type", | ||
"item_tier", | "item_tier", | ||
"souls", | "souls", | ||
"component1_name", | "component1_name", | ||
"component2_name", | |||
"item_description", | "item_description", | ||
"item_stat1", | "item_stat1", | ||
| Line 354: | Line 306: | ||
"item_stat7", | "item_stat7", | ||
"passive1_cooldown", | "passive1_cooldown", | ||
"passive1_chargeup", | |||
"passive1_description", | "passive1_description", | ||
"passive1_stat1", | "passive1_stat1", | ||
| Line 376: | Line 329: | ||
"active1_stat5", | "active1_stat5", | ||
"active1_stat6", | "active1_stat6", | ||
"active1_stat7", | |||
"active1_stat8", | |||
"active2_description", | "active2_description", | ||
"active2_stat1", | "active2_stat1", | ||
| Line 383: | Line 338: | ||
"active2_stat5", | "active2_stat5", | ||
"iscomponentof1_name", | "iscomponentof1_name", | ||
"iscomponentof2_name", | |||
"iscomponentof3_name", | |||
"sound1", | "sound1", | ||
"sound2", | "sound2", | ||
" | "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> | ||