Template:Infobox npc
Infobox npc | |
---|---|
No image yet |
This template generates an infobox for npcs including Zombies and Animals. The Infobox provides a summary of features associated with a given npc. It is intended to organize the information consistently across all npcs and provide a quick reference-point for pertinent information about the npc.
Formatting and ordering of information is largely done by the template with a few exceptions noted below (sizing images, adding links, etc).
Information is passed to the template in the form of parameters and values that are designated as such: |parameter = value. Parameters containing no value or only whitespace will be ignored and not included in the infobox.
Boolean Values
Parameters that expect boolean values such as true or false allow for some variation in terminology as in the following:
- 1, y, yes, t, true = TRUE
- 0, n, no, f, false = FALSE
For more information, see the documentation for Template:Validate_bool
Syntax
Basic syntax:
{{Infobox item | name = {{PAGENAME}} | parameter = value | parameter = value | parameter = value }}
Usage
Use the following to easily create new infoboxes. Cut and paste the code then replace the values as appropriate.
Complete
Complete |
---|
{{Infobox npc |name = |image = |image_alt = |size = |caption = |category = |type = Friendly|Neutral|Hostile |drops = |location = |quests = y/n |effects = |damage = |block_damage = |range = |critratio = |added_version = |removed_version = |updated_version = |confirmed_version = |npcsystem = Standard|UMA |}} |
Short Forms
Animal
Animal |
---|
{{Infobox npc |name = |image = |image_alt = |size = |caption = |category = Animal |type = Neutral|Hostile |drops = |damage = |block_damage = |location = |added_version = |removed_version = |updated_version = |confirmed_version = |}} |
Zombie
Zombie |
---|
{{Infobox npc |name = |image = |image_alt = |size = |caption = |category = Zombie |type = Hostile |zombie_types = Normal, Feral, Radiated, Feral and Radiated |drops = |location = |effects = |damage = |block_damage = |range = |critratio = |added_version = |removed_version = |updated_version = |confirmed_version = |}} |
Raider
Raider |
---|
{{Infobox npc |name = |image = |image_alt = |size = |caption = |category = Raider |type = Hostile |drops = |location = |effects = |damage = |block_damage = |range = |critratio = |added_version = |removed_version = |updated_version = |confirmed_version = |}} |
Friendly
Friendly |
---|
{{Infobox npc |name = |image = |image_alt = |size = |caption = |category = Friendly |type = Friendly |drops = |location = |quests = y/n |added_version = |removed_version = |updated_version = |confirmed_version = |}} |
Parameters
Parameter | Legal Values | Description | Auto-categorizes |
---|---|---|---|
name | <String> | Name of the NPC | N |
image | <String> | Main image of the item | N |
image_alt | <String> | First alternate Image of the item | N |
size | N | ||
caption | <String> | Caption for the main image | N |
category | Zombie, Raider, Animal, Friendly | The wiki category in which to place the item. This includes if the NPC is a Zombies, Raider, or Animal | Y |
type | Friendly, Neutral, or Hostile | Defines how the NPC acts towards player characters. | Y |
zombie_types | Normal, Feral, Radiated, Feral and Radiated | Zombies can be one of four types. A particular zombie can have a number of different types as defined here, i.e. a Wight zombie can come in "Feral" and "Feral and Radiated" types. If no type is given, then it is assumed that they only come as a Normal zombie type. | Y |
drops | <Strings> | What items the NPC is potentially going to drop. | N |
location | <String> | Where the NPC is found in the World, what biomes or buildings it is likely to hang out in. | N |
quests | Y, N | If the NPC gives quests | N |
effects | |||
damage | <Numeric> | Damage that the entity does to another entity. | |
block_damage | <Numeric> | Damage that the entity does to block. | |
range | <Numeric> | ||
critratio | |||
added_version | <Version String> | The version of 7D2D that the NPC was added. Note: This can not be a link. |
Y |
removed_version | <Version String> | The version of 7D2D that the NPC was removed. Note: This can not be a link. |
Y |
updated_version | <Version String> [, <Version String> ...] | A comma separated list of versions that the npc has been updated. Note: These can not be links. |
Y |
confirmed_version | <Version String> | Version that the NPC has been comfirmed to be working. Should only be updated to the latest version when the details have been confirmed to be correct. Note: These can not be links. |
Y |
npcsystem | Standard, UMA | The system that 7D2D uses for its NPCs. There are 2 types at the moment Standard and UMA. | N |
The above documentation is transcluded from Template:Infobox npc/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | history) and testcases (edit) pages.
de:Vorlage:Infobox npc es:Plantilla:Infobox npc pl:Szablon:Infobox npc ru:Шаблон:Infobox npc