Template:NPCInfobox: Difference between revisions
imported>Dawning m update frags |
imported>LoekTheBawz No edit summary |
||
| Line 17: | Line 17: | ||
|Attack={{#if:{{{Attack|}}}| <span style="font-weight:bold;">Attack Pattern:</span> <span>{{{Attack}}}</span>}} | |Attack={{#if:{{{Attack|}}}| <span style="font-weight:bold;">Attack Pattern:</span> <span>{{{Attack}}}</span>}} | ||
|Loot=Unholy;Voidbound;Bloodshot;Royal;Gilded;Irradiated;Companion;Rune;Frag | |Loot=Unholy;Voidbound;Bloodshot;Royal;Gilded;Irradiated;Halloween;Christmas;Valentine;Companion;Rune;Frag | ||
|Unholy={{#arraymap:{{{Unholy|}}}|,|@@@|<span class="loot-data-infobox">[[File:Chest_unholy.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | |Unholy={{#arraymap:{{{Unholy|}}}|,|@@@|<span class="loot-data-infobox">[[File:Chest_unholy.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | ||
| Line 25: | Line 25: | ||
|Gilded={{#arraymap:{{{Gilded|}}}|,|@@@|<span class="loot-data-infobox">[[File:Chest_gilded.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | |Gilded={{#arraymap:{{{Gilded|}}}|,|@@@|<span class="loot-data-infobox">[[File:Chest_gilded.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | ||
|Irradiated={{#arraymap:{{{Irradiated|}}}|,|@@@|<span class="loot-data-infobox">[[File:Chest_irradiated.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | |Irradiated={{#arraymap:{{{Irradiated|}}}|,|@@@|<span class="loot-data-infobox">[[File:Chest_irradiated.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | ||
|Halloween={{#arraymap:{{{Halloween|}}}|,|@@@|<span class="loot-data-infobox">[[File:pouch_halloween.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | |||
|Christmas={{#arraymap:{{{Christmas|}}}|,|@@@|<span class="loot-data-infobox">[[File:pouch_christmas.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | |||
|Valentine={{#arraymap:{{{Valentine|}}}|,|@@@|<span class="loot-data-infobox">[[File:pouch_valentine.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | |||
|Companion={{#arraymap:{{{Companion|}}}|,|@@@|<span class="loot-data-infobox">[[File:Pouch_gold.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | |Companion={{#arraymap:{{{Companion|}}}|,|@@@|<span class="loot-data-infobox">[[File:Pouch_gold.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | ||
|Rune={{#arraymap:{{{Rune|}}}|,|@@@|<span class="loot-data-infobox">[[File:Pouch_rune.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | |Rune={{#arraymap:{{{Rune|}}}|,|@@@|<span class="loot-data-infobox">[[File:Pouch_rune.png|32px]] [[{{#explode:@@@|;|0}}|{{#explode:@@@|;|1}}]] [[File:{{#explode:@@@|;|2}}]]</span> <span class="boss-percent">{{#explode:@@@|;|3}}%</span>|<br>}} | ||
| Line 38: | Line 41: | ||
|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 | ||
Revision as of 17:19, 4 October 2025
{{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).
