Template:NPCInfobox: Difference between revisions
imported>Dawning Im Wiking It |
imported>Dawning Im Wiking It |
||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:Infobox|main | <includeonly>{{#invoke:Infobox|main | ||
|kind=boss | |kind=boss | ||
|class= | |class=npc-infobox | ||
|sep=; | |sep=; | ||
|image={{#if:{{{image|}}}|{{#if:{{#explode:{{{image}}}|;|1}}|<span style="align-items: center">[[File:{{#explode:{{{image}}}|;|1}}.png{{!}}900px]]</span>}}[[File:{{#explode:{{{image}}}|;|0}}{{!}}300px]]|[[File:Site-logo.png{{!}}300px]]}} | |image={{#if:{{{image|}}}|{{#if:{{#explode:{{{image}}}|;|1}}|<span style="align-items: center">[[File:{{#explode:{{{image}}}|;|1}}.png{{!}}900px]]</span>}}[[File:{{#explode:{{{image}}}|;|0}}{{!}}300px]]|[[File:Site-logo.png{{!}}300px]]}} | ||
Revision as of 00:53, 9 November 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).
