Template:ItemInfobox: Difference between revisions
imported>Dawning mNo edit summary |
automation |
||
| (29 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:Infobox|main | <includeonly>{{#invoke:Infobox|main | ||
|kind=item | |kind=item | ||
|class=item-infobox | |||
|sep=; | |sep=; | ||
|images={{#arraymap:{{{images|}}}| | |images={{#arraymap:{{{images|}}}|;|@@@@|[[File:{{#explode:@@@@|,|0}}{{!}}300px{{!}}link=]]|;}} | ||
|tabs={{#arraymap:{{{images|}}}| | |tabs={{#arraymap:{{{images|}}}|;|@@@@|{{#explode:@@@@|,|1}}|;}} | ||
|sections=Description;Stats;Abilities;Info | |sections=Description;Stats;Abilities;Reskins;Info | ||
|title={{#explode:{{{title|}}}|;|0}} | |title={{#replace:{{#explode:{{{title|}}}|;|0}}|]]|]] }} | ||
{{#if:{{#explode:{{{title|}}}|;|1}}|<br><span class="iteminfobox-subtitle">{{#explode:{{{title|}}}|;|1}}</span>}} | {{#if:{{#explode:{{{title|}}}|;|1}}|<br><span class="iteminfobox-subtitle">{{#explode:{{{title|}}}|;|1}}</span>}} | ||
|Description=Desc | |||
|Description=Unholy;Voidbound;Bloodshot;Royal;Gilded;Irradiated;Halloween;Christmas;Valentine;Desc | |||
|Unholy_nolabel=true | |||
|Voidbound_nolabel=true | |||
|Bloodshot_nolabel=true | |||
|Royal_nolabel=true | |||
|Gilded_nolabel=true | |||
|Irradiated_nolabel=true | |||
|Halloween_nolabel=true | |||
|Christmas_nolabel=true | |||
|Valentine_nolabel=true | |||
|Desc_nolabel=true | |Desc_nolabel=true | ||
|Stats=Attack;Defense;Speed;Vitality;Critical Chance;Health;Evasion;Damage;Shots;Cooldown;Range;Velocity | |Stats=Type;Attack;Defense;Speed;Vitality;Critical Chance;Health;Evasion;Damage;Healing;Shots;Slashes;Beams;Cooldown;Pierce;Pierces;Range;Velocity | ||
|Pierce_label=Pierces | |||
|Abilities=Ability;SP | |Abilities=Ability;SP | ||
|Ability_nolabel=true | |||
| | |Reskins=ReskinList | ||
|Reskins_label=Applicable Reskins | |||
|ReskinList_nolabel=true | |||
|ReskinList={{#if:{{{T1|}}}{{{T2|}}}{{{T3|}}}{{{T4|}}}{{{T5|}}}{{{T6|}}}{{{T7|}}}{{{T8|}}}||{{#invoke:Reskins|forType|{{{type|{{#var:itemtype}}}}}}}}} | |||
| | |Info=Drop;TP;Classes | ||
|Drop_label=Obtained From | |||
|TP_label=Tier Points Given | |TP_label=Tier Points Given | ||
|Classes_label=Useable On | |Classes_label=Useable On | ||
|Drop={{#if:{{#explode:{{{Drop|}}}|;|0}}|{{#explode:{{{Drop|}}}|;|0}}}}{{#if:{{#explode:{{{Drop|}}}|;|1}}|[[File:{{#explode:{{{Drop|}}}|;|1}}.png|32px]]}} | |||
|Dungeon=[[{{#explode:{{{Dungeon|}}}|;|0}}]]{{#if:{{#explode:{{{Dungeon|}}}|;|1}}|[[File:{{#explode:{{{Dungeon|}}}|;|1}}.png{{!}}32px]]}} | |Dungeon=[[{{#explode:{{{Dungeon|}}}|;|0}}]]{{#if:{{#explode:{{{Dungeon|}}}|;|1}}|[[File:{{#explode:{{{Dungeon|}}}|;|1}}.png{{!}}32px]]}} | ||
|Classes={{#arraymap:{{{Classes|}}}|;|@@@@|[[@@@@]] [[File:@@@@Sprite.png{{!}}32px]]|\n}} | |Classes={{#arraymap:{{{Classes|}}}|;|@@@@|[[@@@@]] [[File:@@@@Sprite.png{{!}}32px]]|\n}} | ||
Latest revision as of 12:23, 16 June 2026
{{ItemInfobox}} builds the item card shown at the top of every weapon, ability and armour entry. It runs on Module:Infobox (the DRUID engine) and is placed inside the item category templates such as Template:Swords/Weapons, Template:Orbs/Abilities and Template:Tiered/Heavy/Armours.
Overview
ItemInfobox renders a card with five sections — Description, Stats, Abilities, Reskins and Info. You fill in only the fields the item actually has; empty fields are not shown. There are two kinds of item:
- Untiered — a single image (
Ut-ItemName.png) plus one rarity flag (Irradiated, Gilded, Royal, Bloodshot, Voidbound or Unholy). The flag colours the card border. - Tiered — a tiered image (
T#Type.png, e.g.T5Sword.png) plus one tier flag (T1…T8). There are 8 tiers only — no T9+, and no EX variants.
Parameters
| Parameter | Required? | What it does | Example |
|---|---|---|---|
title |
Required | Item name (card heading). Add a subtitle after a semicolon. | Titanium Cleaver or Name;Subtitle
|
images |
Required | The item sprite (one file). | Ut-TitaniumCleaver.png / T5Sword.png
|
Desc |
Optional | Description / lore text (no label). | A quick and deadly cleaver.
|
Irradiated Gilded Royal Bloodshot Voidbound Unholy |
One — untiered only | Rarity flag; sets the coloured border. Value is always true. Use exactly one. |
Irradiated = true
|
T1…T8 |
One — tiered only | Tier flag (value true). Use exactly one; also hides the auto Reskins list. |
T5 = true
|
Damage |
Optional | Base hit damage. | 19
|
Range |
Optional | Attack range. | 5
|
Shots / Slashes / Beams |
Optional | Attack count — Shots (bows/sceptres), Slashes (swords/daggers), Beams (beam weapons). | 1
|
Velocity |
Optional | Projectile speed; a number or Instant for melee. |
Instant
|
Pierce |
Optional | Yes or No (row labelled "Pierces"). |
Yes
|
Cooldown |
Optional | Cooldown, written with the trailing s. |
0.8s
|
Healing |
Optional | Healing amount (healing items). | 5
|
Attack Defense Speed Vitality Critical Chance Health Evasion |
Optional | Gear stat bonuses (mainly armour). Negatives allowed. | Defense = -6
|
Type |
Optional | Item type/sub-type label. | Healer
|
Ability |
Optional | Ability text (Abilities section, no label). | Your third attack deals 2 slashes…
|
Drop |
Optional | "Obtained From". A plain link, a bag name, or Name;Icon (appends File:Icon.png). |
Goblin Lair
|
TP |
Optional | Tier Points Given. Tiered = tier number; untiered by essence (Irr 9, Gild 10, Royal 11, Blood 12, Void 14, Unholy 14). | 9
|
Classes |
Optional | Semicolon-separated classes; each renders with its class sprite. | Knight;Samurai
|
How to use
- Open the matching category template (e.g.
{{Swords/Weapons}}) and add a new{{ItemInfobox …}}block inside its Tiered or Untiered<tabber>section. - Set
titleandimages. - Untiered: add one rarity flag (
Irradiated = true, …). Tiered: add one tier flag (T5 = true) and use aT#Type.pngimage. - Fill in only the stats the item has — take them straight from the item's
.ktsmodifiers{}; omit anything it does not define. - Put the ability text (the kts
extra("…")with the leading "Ability:" removed) inAbility.
Reskins fill in automatically for untiered items (via Module:Reskins) and the section is hidden on tiered items. A Shiny tab is added automatically when a Shiny<file> image exists.
Copy this
{{ItemInfobox
|title =
|images =
|Irradiated =
|Desc =
|Damage =
|Range =
|Slashes =
|Velocity =
|Pierce =
|Cooldown =
|Ability =
|Drop =
|TP =
|Classes =
}}Example
Titanium Cleaver

Description
true
Drayruk took this cleaver as a trophy after defeating his enemy in the last goblin war. It is quick and deadly, capable of decimating multiple enemies at once.
Stats
Damage
19
Slashes
1
Cooldown
0.8s
Pierces
Yes
Range
5
Velocity
Instant
Abilities
After hitting 2 slashes in a row, your third attack will be 2 slashes that deal 12.4 damage each.
{{ItemInfobox
|title = Titanium Cleaver
|images = Ut-TitaniumCleaver.png
|Irradiated = true
|Desc = Drayruk took this cleaver as a trophy after defeating his enemy in the last goblin war.
|Damage = 19
|Range = 5
|Slashes = 1
|Velocity = Instant
|Pierce = Yes
|Cooldown = 0.8s
|Ability = After hitting 2 slashes in a row, your third attack will be 2 slashes that deal 12.4 damage each.
|TP = 9
|Drop = [[Goblin Lair]]
|Classes = Knight;Samurai
}}A tiered entry uses a tier flag and a tiered sprite instead:
{{ItemInfobox
|title = Honey Sword
|images = T5Sword.png
|T5 = true
|Damage = 40
|Cooldown = 1s
|TP = 5
}}Tips & notes
- 8 tiers only (T1–T8). No T9+, no EX variants, and reskins are not separate items here (they live on their own page).
- Untiered items use a single plain image and a rarity flag — do not add
,UT/,EXtabs orUT_/EX_prefixes. - Convert ability damage multipliers ("2x damage") to absolute numbers (N × base damage, 1 decimal). Keep non-damage multipliers as written.
- File names follow the scheme:
Ut-ItemName.png(untiered),T#Type.png(tiered). - Related:
{{NPCInfobox}}(bosses/enemies), Module:Infobox (engine), Module:Reskins (auto reskin list).