- Diese Vorlage definiert die Tabelle „NPCs“. Tabelle ansehen.
- Diese Vorlage fügt Zeilen zur Tabelle „Items“ hinzu, die von der Vorlage Item infobox definiert wird. Tabelle ansehen.
Infobox-Vorlage zur Verwendung in allen NPC-Artikeln. Wird an den Anfang der Seite gesetzt und bietet einen knappen Überblick über die wichtigsten Informationen.
Alle Parameter sind optional. Wird {{nameen}}
jedoch nicht spezifiziert und existiert kein Eintrag im Wörterbuch, sollte er mit angegeben werden.
Verwendung
Parameter | Description | Auto | Example | Default value (if omitted) |
Note |
---|---|---|---|---|---|
{{npc infobox
| |||||
Boxbezogene Parameter | |||||
| boxwidth |
Breite der Infobox | 27em |
Zahl mit Einheit. Der Rahmen wird standardmäßig an die Breite der Bilder angepasst. | ||
| float |
Position der Infobox | left |
right |
||
| css or | style |
CSS style, der die gesamte Infobox betrifft | Jede oder Eigenschaft, die hier definiert wird, überschreibt die Parameter und der Vorlage.
| |||
| tab or | tabs |
Umschalten der Schwierigkeitsregisterkarten |
|
Die Registerkarten Classic/Expert/Master werden nicht für Haus-NPCs, Tiere, Einrichtungsgegenstände, und exklusive Varianten verwendet, sondern für alle anderen NPCs. Dieser Parameter setzt diese Standardkonfiguration außer Kraft. | ||
| auto |
Ermöglicht automatische Daten | 201 |
Kann auch sein (siehe notes oben).
| ||
| id |
ID des NPC | ✓ | 201 |
Kosmetische ID, die angezeigt werden soll; überschreibt die Anzeige von und .
| |
| name |
Name des NPC | ✓ | Skeleton |
<page name> |
Wird als Überschrift der Infobox angezeigt. |
| name2 |
Kosmetischer Zusatz zum Namen |   / {{expert|Lunatic Cultist}} |
Wird direkt an angehängt.
| ||
| namesub |
Name Unter-Überschrift | ✓ | Zusätzliche Informationen direkt unter dem Titel der Infobox. Hauptsächlich interne NPC-Variantennamen, wie .
| ||
| namesub2 |
Name Unter-Überschrift | First Form |
Zusätzliche Informationen direkt unter dem Titel der Infobox oder unter . Soll als manueller verwendet werden, da das manuelle Setzen von auf etwas die automatische Anzeige verhindern würde.
| ||
| namenote |
Name Unter-Unterüberschrift | ✓ | Wird unter angezeigt / angezeigt. Hauptsächlich NPC-Variantenbeschreibungen, wie .
| ||
| variant |
Hinweis zur Plattformexklusivität | yes |
Zeigt einen Hinweis am oberen Rand der Infobox an, der über die ![]() | ||
| expertonly |
Expert-Exklusiv des NPC | yes |
Entfernt die Registerkarte "Classic" und zeigt die folgende Zeile unter dem Titel an / / / : (Experten-Modus-exklusiv)
| ||
| masteronly |
Master-Exklusiv des NPC | yes |
Entfernt die Registerkarte "Classic" und "Experte" und zeigt die folgende Zeile unter dem Titel an / / / : (Meister-Modus-exklusiv)
| ||
Image-related parameters | |||||
| imagealt |
Complete custom control over the display of the first image | [[File:Skeleton.png]] |
Overrides the and parameters. Multiple images can be provided and/or text and other formatting.
| ||
| image |
Main image of the NPC | Skeleton.png |
$namesub.png or $name.png |
This is the image that is stored to cargo by default. | |
| imagesize |
Size of the main image | 40x20px*0.75 |
*1 |
Corresponds to the parameter of {{image}}: <width>x<height>*<scale>
| |
| imageexpert |
Image of the Expert variant | Skeleton.png |
|||
| image2 |
Additional image | Skeleton.png |
Default value: <$image without ".png">_(old).png / .gif . Leave it empty to disable this automatic old image discovering.
| ||
| imagemode |
Controls image display | full |
Setting it to anything other than prevents the automatic display of .
| ||
| image3 |
Additional image | Skeleton.png |
|||
| imageversion2 |
Exclusive versions of
|
desktop-console |
old-gen-3ds |
Versions that will be displayed when hovering over (by default the one, so the "old" versions are the default). Valid values are , , , , and .
| |
| imageversion3 |
Exclusive versions of
|
desktop-console |
Versions that will be displayed when hovering over . Valid values are the same as for .
| ||
| imageother |
Additional, visually separated image | Map Icon Skeletron.png |
Will be displayed underneath all other images, above the statistics, separated by a horizontal line at the bottom of the infobox. Usually used for map icons or sprites of NPCs' temporary states (e.g. the "rolling" state of the Sroller). Can be a slash-separated ( ) list for multiple images.
| ||
| imageothercaption |
Caption of
|
Rolling state |
Will be displayed underneath . Has no effect if is not set. Is not mandatory; the image will also be displayed if the caption is omitted.
| ||
Statistics-related parameters | |||||
| type (deprecated: | type2 ,| type3 ) |
Classification and categorization | Boss |
Enemy |
Broad classifications like "Flying Enemy", "Critter", etc. Separate multiple values with a slash ( ). All types will be linked, if the respective page exists.
| |
| environment (deprecated: | environment2 ,| environment3 ) |
Native environment of the NPC | Desert Forest+Rain Desert / Forest Desert / Forest+Rain |
Biome in which or event during which the NPC naturally spawns. All environments will be linked if the respective page exists. A plus ( ) means "AND" and a slash ( ) means "OR".
The | ||
| ai |
AI style of the NPC | ✓ | Fighter AI |
||
| damage |
Damage | ✓ | |||
| damage2 |
Addition to the damage | Will be directly appended to . Can be used, for instance, for differentiation between different attacks of the NPC or different platforms.
| |||
| life |
Maximum health of the NPC | ✓ | |||
| life2 |
Addition to the maximum health | Will be directly appended to .
| |||
| defense |
Defense of the NPC | ✓ | |||
| defense2 |
Addition to the defense | Will be directly appended to .
| |||
| knockback |
Resistance to knockback of the NPC | ✓ | |||
| knockback2 |
Addition to the knockback resistance | Will be directly appended to .
| |||
| banner |
Banner of the NPC | ✓ | yes |
Setting it to will cause it to take as the banner name, but it can also simply be set to the name of the banner.
Note that, if using | |
| immune (deprecated: | immune1 | immune2 ... | immune<n> ) |
Debuffs to which the NPC is immune | ✓ | Poisoned / Frostburn |
The /etc. parameters are deprecated, instead use only the parameter. Separate multiple debuff names with a slash ( ).
All immunity-related information will only be displayed if | |
| immuneall |
Immunity to all debuffs | ✓ | yes |
All immunity-related information will only be displayed if does not contain , , and .
| |
| immuneallnotwhips |
Immunity to all debuffs except whip debuffs | ✓ | yes |
||
| immuneallnote or | immunenote |
Addition to /
|
Will be directly appended to the text that is displayed if / is set.
Example: All immunity-related information will only be displayed if | |||
Buff- & Debuff-related parameters | |||||
| buff |
Buff that the NPC causes | ✗ | Dryad's Blessing |
Name of the buff. As a shortcut for , , and , they can be appended to this value, separated with a slash: | buff = <name> / <duration> / <chance> <mode> . Chance and mode may also be omitted, and only the standard mode values[1] are allowed.
Examples:
| |
| idbuff |
Buff ID | ✓ | |||
| bufflink |
Buff link target | ✓ | |||
| bufftip |
Buff tooltip | ✓ | |||
| buffchance |
Buff chance | ✗ | |||
| buffduration |
Buff duration | ✗ | Enter the value using the {{duration}} template. | ||
| buffmode |
Mode-exclusivity of the buff | ✗ | Can be one of the standard mode options[1] or , , or . The buff will only be displayed in the respective tab(s). By default, it will be displayed in all three tabs.
| ||
| buffidshow |
Vanity buff ID | ||||
| buff<n> |
Additional buff that the NPC causes | Can be continued nearly infinitely, e.g. buff2 , buff3 , etc.
| |||
| idbuff<n> |
Buff ID | ||||
| bufflink<n> |
Buff link target | ||||
| bufftip<n> |
Buff tooltip | ||||
| buffchance<n> |
Buff chance | ||||
| buffduration<n> |
Buff duration | ||||
| buffmode<n> |
Mode-exclusivity | ||||
| buffidshow<n> |
Vanity buff ID | ||||
| debuff |
Debuff that the NPC inflicts | ✗ | See above. Debuffs and buffs are handled identically. | ||
| iddebuff |
Debuff ID | ✓ | |||
| debufflink |
Debuff link target | ||||
| debufftip |
Debuff tooltip | ✓ | |||
| debuffchance |
Debuff chance | ✗ | |||
| debuffduration |
Debuff duration | ✗ | |||
| debuffmode |
Mode-exclusivity of the debuff | ✗ | |||
| debuffidshow |
Vanity debuff ID | ||||
| debuff<n> |
Additional debuff that the NPC causes | Can be continued nearly infinitely, e.g. debuff2 , debuff3 , etc.
| |||
| iddebuff<n> |
Debuff ID | ||||
| debufflink<n> |
Debuff link target | ||||
| debufftip<n> |
Debuff tooltip | ||||
| debuffchance<n> |
Debuff chance | ||||
| debuffduration<n> |
Debuff duration | ||||
| debuffmode<n> |
Mode-exclusivity | ||||
| debuffidshow<n> |
Vanity debuff ID | ||||
Drop-related parameters | |||||
| money |
Base amount of money that the NPC drops | ✓ | {{coin|3gc 80sc}} |
Use the {{Vorlage:Nslink}} template. | |
| money2 |
Addition to dropped money | Will be directly appended to .
| |||
| <item name 1>
...
|
Dropped item | ✗ | |Gel|2–5|{{modes|75%|100%}}
|
Note that these are unnamed parameters, i.e., they are not used with an equals sign (= ) like the other parameters.
| |
|:group:start
...
|
Group of dropped items | |:group:start|Only one of the following 4 will drop|@normal
...
|
Note that these are unnamed parameters, i.e., they are not used with an equals sign (= ) like the other parameters.
| ||
|:loot:start
...
|
Subgroup of a dropped item | Note that these are unnamed parameters, i.e., they are not used with an equals sign (= ) like the other parameters.
All items inside the section will be stored to cargo with the name of the item directly above the section, instead of the name of the NPC as usual. For example, preceding a loot section on Wall of Flesh that contains the Demon Heart with Treasure Bag (Wall of Flesh) will store the dropping entity of the Demon Heart as "Treasure Bag (Wall of Flesh)" instead of "Wall of Flesh", as would be the case with all items outside the loot section. | |||
| custom:<raw item name(s)> |
Custom dropped item | Note that these are unnamed parameters, i.e., they are not used with an equals sign (= ) like the other parameters.
| |||
Sound-related parameters | |||||
| soundhurt |
Hurt sound effect | ✓ | NPC_Hit_1.wav |
Can be a comma-separated list for multiple sounds. Caption is "Getroffen". Set to an empty value (|soundhurt= ) to hide the automatically generated sounds.
| |
| soundkilled |
Killed sound effect | ✓ | NPC_Killed_1.wav |
Can be a comma-separated list for multiple sounds. Caption is "Getötet". Set to an empty value (|soundkilled= ) to hide the automatically generated sounds.
| |
| sound1 |
Custom additional sound effect | Can be a comma-separated list for multiple sounds. | |||
| soundcaption1 |
Caption for the sound effect | ||||
| soundmode1 |
Mode-exclusivity of the sound effect |
|
Can be , , or . The sound(s) will only be displayed in the respective tab (both Expert and Master if set to ). By default, a sound will be displayed in all three tabs.
| ||
| sound2 |
Custom additional sound effect | See above. These parameters behave in the exact same manner. | |||
| soundcaption2 |
Caption for the sound effect | ||||
| soundmode2 |
Mode-exclusivity of the sound effect | ||||
| sound<n> |
Custom additional sound effect | Can be continued nearly infinitely. Sounds will only be displayed if there is a sound<n> parameter with a corresponding soundcaption<n> parameter.
| |||
| soundcaption<n> |
Caption for the sound effect | ||||
| soundmode<n> |
Mode-exclusivity of the sound effect | ||||
Back-end-related parameters | |||||
| cate |
Toggles all categorization | ✗ | no |
Set to to force categorization when it is disabled by default (on non-mainspace pages). Set to to disable categorization.
| |
| listcat (deprecated: | listcat2 ) |
Categorization | ✗ | Supplemental category names (Category:<$listcat> NPCs ). Separate multiple with a slash ( ).
Note: The template mainly categorizes the page based on the | ||
| allversions |
Platform version availability | ✓ |
|
Set to to assert that the NPC is available on all platforms of Terraria. This is only to be used if no {{exclusive}} banner is on the page. If omitted, it will be detected automatically based on the result of {{eversions|<NPC name>}} (even though might not be set!). Categorizes the page in all five version content categories (with the exception of Category:Japanese console content), if is determined.
| |
| hardmode |
Hardmode-exclusivity | ✗ | yes |
Set to to assert that the NPC is not available in pre-Hardmode, but only becomes available in Hardmode. Categorizes the page in Category:Hardmode-only NPCs.
| |
| cargo |
Toggles cargo data storage | ✗ | no |
Set to to force cargo data storage when it is disabled by default (on non-mainspace root pages[2]). Set to to disable cargo data storage.
| |
| cargodrops |
Toggles drops cargo data storage | ✗ | no |
By default, dropped item data will be stored to cargo if , i.e., main cargo data storage, is enabled. Use this parameter to override that.
A frequently used example is in cases where an enemy with multiple parts, e.g. a worm, does not store its main infobox data to cargo (since only the individual parts should be stored), but contains the drop information in the main infobox, which should be stored to cargo. | |
| idcargo |
NPC ID to store to cargo | ✗ | 201 |
Can be a comma-separated list. Can also be left empty to prevent cargo storage as well. | |
| imagecargo |
NPC image to store to cargo | ✗ | [[File:Skeleton.png]] |
Define an image to store to cargo, completely overriding the image parameters. |
Subpages
There are numerous supplemental subpages which are mainly used for formatting certain data:
- Vorlage:Npc infobox/AI
- Vorlage:Npc infobox/Dokumentation
- Vorlage:Npc infobox/cate
- Vorlage:Npc infobox/cate/environment
- Vorlage:Npc infobox/customView
- Vorlage:Npc infobox/drop
- Vorlage:Npc infobox/environment
- Vorlage:Npc infobox/infoboxView
- Vorlage:Npc infobox/initOptions
- Vorlage:Npc infobox/knockback
- Vorlage:Npc infobox/l10n
- Vorlage:Npc infobox/modestat
- Vorlage:Npc infobox/namedb
- Vorlage:Npc infobox/namedb-cs
- Vorlage:Npc infobox/namedb-da
- Vorlage:Npc infobox/namedb-de
- Vorlage:Npc infobox/namedb-en
- Vorlage:Npc infobox/namedb-es
- Vorlage:Npc infobox/namedb-fr
- Vorlage:Npc infobox/namedb-ja
- Vorlage:Npc infobox/namedb-pt
- Vorlage:Npc infobox/namedb-tr
- Vorlage:Npc infobox/namedb-vi
- Vorlage:Npc infobox/namedb-zh
- Vorlage:Npc infobox/npcToBannerItemId
- Vorlage:Npc infobox/options
- Vorlage:Npc infobox/stat
- Vorlage:Npc infobox/strip
- Vorlage:Npc infobox/tableView
- Vorlage:Npc infobox/tableView/damage
- Vorlage:Npc infobox/tableView/damageBlock
- Vorlage:Npc infobox/tableView/defense
- Vorlage:Npc infobox/tableView/defenseBlock
- Vorlage:Npc infobox/tableView/drops
- Vorlage:Npc infobox/tableView/health
- Vorlage:Npc infobox/tableView/healthBlock
- Vorlage:Npc infobox/tableView/item
- Vorlage:Npc infobox/tableView/kbresist
- Vorlage:Npc infobox/tableView/kbresistBlock
- Vorlage:Npc infobox/tableView/money
- Vorlage:Npc infobox/tableView/moneyBlock
- Vorlage:Npc infobox/tableView/npcid
- Vorlage:Npc infobox/tableView/variant
- Vorlage:Npc infobox/tableend
- Vorlage:Npc infobox/tablestart
- Vorlage:Npc infobox/testView
- Vorlage:Npc infobox/voidView
See also
- {{item infobox}}
Footnotes
- ↑ 1,0 1,1 1,2
The following values are available:
– Classic Mode only@normal
– Expert Mode only@expert
– Master Mode only@master
– Classic and Expert Mode only#normal
– Expert and Master Mode only#expert
- ↑ A root page is a page that is not a subpage. This prevents language subpages from storing duplicates by default.