Template:NPCInfobox: Difference between revisions
imported>Dawning mNo edit summary |
No edit summary |
||
| (32 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:Infobox|main | <includeonly>{{#invoke:Infobox|main | ||
|kind=boss | |kind=boss | ||
|class=npc-infobox | |||
|sep=; | |sep=; | ||
|image={{#if:{{{image|}}}| | |image={{#if:{{{image|}}}|{{#if:{{#explode:{{{image}}}|;|1}}|<span style="align-items: center">[[File:{{#explode:{{{image}}}|;|1}}.png{{!}}900px{{!}}link=]]</span>}}[[File:{{#explode:{{{image}}}|;|0}}{{!}}300px{{!}}link=]]|[[File:Site-logo.png{{!}}300px{{!}}link=]]}} | ||
|sections=General Info;Loot;Tier Points | |sections=Special;General Info;Class Restrictions;Attack Pattern;Loot;Tier Points | ||
|General Info=Health;Biome;Tiered;DungeonDrop;Attack | |Special=SpecialInfo | ||
|General Info=Desc;Health;Fame;Glory;Biome;Tiered;DungeonDrop | |||
|Class Restrictions=CWeapon;CArmour;CAbilities | |||
|Attack Pattern=Attack | |||
|title={{#explode:{{{title|}}}|;|0}} | |title={{#explode:{{{title|}}}|;|0}} | ||
{{#if:{{#explode:{{{title|}}}|;|1}}|<br><span class="boss-infobox-subtitle">{{#explode:{{{title|}}}|;|1}}</span>}} | {{#if:{{#explode:{{{title|}}}|;|1}}|<br><span class="boss-infobox-subtitle">{{#explode:{{{title|}}}|;|1}}</span>}} | ||
|SpecialInfo_nolabel=yes | |||
|DungeonDrop_label=Dungeon Dropped | |DungeonDrop_label=Dungeon Dropped | ||
|Health_label=HP | |Health_label=HP | ||
|Attack_nolabel=yes | |Attack_nolabel=yes | ||
|Tiered_label=Available Tiered Drops | |Tiered_label=Available Tiered Drops | ||
|Fame_label=Fame Given | |||
|Glory_label=Glory Given | |||
|Desc_nolabel=yes | |||
|CWeapon_label=Weapon | |||
|CArmour_label=Armour | |||
|CAbilities_label=Abilities | |||
|Loot=Unholy;Voidbound;Bloodshot;Royal;Gilded;Irradiated;Halloween;Christmas;Valentine;Companion;Rune;Frag | |||
|Loot=Unholy;Voidbound;Bloodshot;Royal;Gilded;Irradiated; | |||
| | |Unholy={{#if:{{{Unholy|}}}|<div class="loot-category-header">[[File:Chest_unholy.png|48px|link=]] <span class="loot-category-title">Unholy Loot</span></div>{{#arraymap:{{{Unholy|}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}{{!}}link=]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span></div>|}}}} | ||
|Voidbound={{#if:{{{Voidbound|}}}|<div class="loot-category-header">[[File:Voidboundpouch.png|48px|link=]] <span class="loot-category-title">Voidbound Loot</span></div>{{#arraymap:{{{Voidbound|}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}{{!}}link=]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span></div>|}}}} | |||
|Bloodshot={{#if:{{{Bloodshot|}}}|<div class="loot-category-header">[[File:Chest_bloodshot.png|48px|link=]] <span class="loot-category-title">Bloodshot Loot</span></div>{{#arraymap:{{{Bloodshot|}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}{{!}}link=]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span></div>|}}}} | |||
|Royal={{#if:{{{Royal|}}}|<div class="loot-category-header">[[File:Chest_royal.png|48px|link=]] <span class="loot-category-title">Royal Loot</span></div>{{#arraymap:{{{Royal|}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}{{!}}link=]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span></div>|}}}} | |||
|Gilded={{#if:{{{Gilded|}}}|<div class="loot-category-header">[[File:Chest_gilded.png|48px|link=]] <span class="loot-category-title">Gilded Loot</span></div>{{#arraymap:{{{Gilded|}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}{{!}}link=]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span></div>|}}}} | |||
|Irradiated={{#if:{{{Irradiated|}}}|<div class="loot-category-header">[[File:Chest_irradiated.png|48px|link=]] <span class="loot-category-title">Irradiated Loot</span></div>{{#arraymap:{{{Irradiated|}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}{{!}}link=]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span></div>|}}}} | |||
|Halloween={{#if:{{{Halloween|}}}|<div class="loot-category-header">[[File:pouch_halloween.png|48px|link=]] <span class="loot-category-title">Halloween Loot</span></div>{{#arraymap:{{{Halloween|}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}{{!}}link=]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span></div>|}}}} | |||
|Christmas={{#if:{{{Christmas|}}}|<div class="loot-category-header">[[File:pouch_christmas.png|48px|link=]] <span class="loot-category-title">Christmas Loot</span></div>{{#arraymap:{{{Christmas|}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}{{!}}link=]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span></div>|}}}} | |||
|Valentine={{#if:{{{Valentine|}}}|<div class="loot-category-header">[[File:pouch_valentine.png|48px|link=]] <span class="loot-category-title">Valentine Loot</span></div>{{#arraymap:{{{Valentine|}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}{{!}}link=]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span></div>|}}}} | |||
|Companion={{#if:{{{Companion|}}}|<div class="loot-category-header">[[File:Pouch_gold.png|48px|link=]] <span class="loot-category-title">Companion Loot</span></div>{{#arraymap:{{{Companion|}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}{{!}}link=]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span></div>|}}}} | |||
|Rune={{#if:{{{Rune|}}}|<div class="loot-category-header">[[File:Pouch_rune.png|48px|link=]] <span class="loot-category-title">Rune Loot</span></div>{{#arraymap:{{{Rune|}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}{{!}}link=]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span></div>|}}}} | |||
| | |Frag={{#if:{{{Frag|}}} | <div class="loot-category-header">[[File:{{#if:{{#explode:{{{Frag}}}|,|1}}|Item-MysteryFragment.png|Item-{{#explode:{{{Frag}}}|;|0}}Fragment.png}}|48px|link=]] <span class="loot-category-title">Fragments</span></div>{{#arraymap:{{{Frag}}}|,|@@@|<div class="loot-item-row"><span class="loot-data-infobox">[[Loot|{{#explode:@@@|;|0}} Fragment]]</span> <span class="boss-percent">{{#explode:@@@|;|1}}%</span></div>|}}}} | ||
|DungeonDrop={{#arraymap:{{{DungeonDrop|}}}|,|@@@|{{#if:{{{DungeonDrop|}}} | <span class="loot-data-infobox"> [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|0}}]] [[File:{{#explode:@@@|;|1}}|32px{{!}}link=]] </span> }}|<br>}} | |||
|Unholy_nolabel=yes | |Unholy_nolabel=yes | ||
|Voidbound_nolabel=yes | |Voidbound_nolabel=yes | ||
| Line 38: | Line 49: | ||
|Gilded_nolabel=yes | |Gilded_nolabel=yes | ||
|Irradiated_nolabel=yes | |Irradiated_nolabel=yes | ||
|Halloween_nolabel=yes | |||
|Christmas_nolabel=yes | |||
|Valentine_nolabel=yes | |||
|Companion_nolabel=yes | |Companion_nolabel=yes | ||
|Rune_nolabel=yes | |Rune_nolabel=yes | ||
Latest revision as of 14:47, 12 June 2026
{{NPCInfobox}} is the card used for every boss and dungeon enemy. It runs on Module:Infobox and shows the NPC's render, an optional boss-bar banner, stats, class restrictions, attack pattern, full loot table and tier-point requirements. {{BossInfobox}} is a redirect to this template, so they are the same thing.
Overview
Place one NPCInfobox at the top of a dungeon, biome or world-boss page. Fill in only the fields you need — empty ones are hidden. The card is organised into sections: Special, General Info, Class Restrictions, Attack Pattern, Loot and Tier Points. Loot is grouped by essence/rarity, each group taking a comma-separated list of items.
Parameters
| Parameter | Required? | What it does | Example |
|---|---|---|---|
title |
Required | NPC name. Add a subtitle after a semicolon (rendered smaller). | Kurvaros;Machinist Maestro
|
image |
Required | render or render;bossbar. The render shows at 300px; the bossbar (no .png — it is added for you) shows as a wide banner. Defaults to Site-logo if blank. |
Boss-3DKurvaros.png;Bossbar-Kurvaros
|
SpecialInfo |
Optional | Free text in the "Special" section (no label). | Enraged below 33% HP
|
Desc |
Optional | Description / flavour (no label). | A machine that grows by absorbing invaders.
|
Health |
Optional | Boss/enemy HP (labelled "HP"). | 3520
|
Fame / Glory |
Optional | Fame / Glory given on kill. | 450
|
Biome |
Optional | Biome (auto-linked). | Desert
|
Tiered |
Optional | "Available Tiered Drops" — usually the bag icons / tier range. | 7-8
|
DungeonDrop |
Optional | "Dungeon Dropped". One or more Page;Icon.png pairs, comma-separated. |
Anubis Lair;Portal-AnubisLair.png
|
CWeapon / CArmour / CAbilities |
Optional | Class-restriction rows (Weapon / Armour / Abilities). | Knight only
|
Attack |
Optional | Attack-pattern text (no label). | Fires a single explosive projectile.
|
Unholy Voidbound Bloodshot Royal Gilded Irradiated Halloween Christmas Valentine Companion Rune |
Optional | Loot groups. Each is a comma-separated list of items in the form Page;Name;File.png;Percent. |
see below |
Frag |
Optional | Fragment drops as Rarity;Percent (comma-separated for several). |
Royal;75
|
Required |
Optional | Required Tier Points to enter. | 45
|
Solo |
Optional | Recommended solo Tier Points. | 60
|
How to use
The repeating syntax to learn is the loot item:
DirectedPage;ItemName;File.png;Percent
- DirectedPage — the page the link points to (e.g.
Weapons). - ItemName — the visible link text.
- File.png — the item image (just the filename — no
File:…brackets). - Percent — drop chance, the number only (no
%).
Add more items in the same group by separating with a comma:
Weapons;Mechanical Cutlass;Ut-MechanicalCutlass.png;2,Armours;Black Hole Sandals;Ut-BlackHoleSandals.png;2
Other field formats: title = Name;Subtitle (subtitle optional); image = render;bossbar (bossbar optional, no .png); DungeonDrop = Page;Icon.png; Frag = Rarity;Percent.
Copy this
{{NPCInfobox
|title =
|image = .png
|SpecialInfo =
|Health =
|Fame =
|Glory =
|Biome =
|Tiered =
|DungeonDrop =
|Attack =
|Unholy =
|Voidbound =
|Bloodshot =
|Royal =
|Gilded =
|Irradiated =
|Halloween =
|Christmas =
|Valentine =
|Companion =
|Rune =
|Frag =
|Required =
|Solo =
}}Example
Machinist Maestro

{{NPCInfobox
|title = Kurvaros;Machinist Maestro
|image = Boss-3DKurvaros.png;Bossbar-Kurvaros
|Health = 3520
|Fame = 450
|Glory = 450
|Biome = Desert
|Tiered = 7-8
|Royal = Weapons;Mechanical Cutlass;Ut-MechanicalCutlass.png;2,
Abilities;Voltaic Bomb;Ut-VoltaicBomb.png;2
|Frag = Royal;75
|Required = 45
|Solo = 60
}}A plain dungeon enemy just needs a render, HP and attack:
{{NPCInfobox
|title = Beetle Trooper
|image = Mob-3DBeetleTrooper.png
|Health = 127
|Fame = 35
|Glory = 35
|Attack = Fires a single explosive projectile at the player.
|Frag = Royal;5
}}Tips & notes
- The bossbar in
imageis written without.png(the template adds it). Render names follow the file scheme:Boss-3DName.pngbosses,Mob-3DName.pngenemies, withBossbar-Namefor the bar. - In loot lists, put the filename only — never
File:…— and the percent as a bare number. - Used by dungeon pages, biome pages and the World Bosses page.
{{BossInfobox}}redirects here. - Related:
{{ItemInfobox}}(items),{{Dungeon Link}}(portal thumbnails), Module:Infobox (engine).