Template:GetNpcInfo/doc

This template is used to dynamically and reliably display an NPC's stats. It is based on Module:Npcinfo, which takes its data directly from the source code. This facilitates displaying stats without having to change them in case of updates. can be used as a shortcut for this template.

An example usage can be found on the Bosses page, where the health of almost every boss is presented using this template.

Usage
ID of the NPC or name of the NPC, as used in the database: Template:NpcIdFromName. Specific stat to be displayed; see the tables below for valid values. You can use npcinfo/all to display all stats. Specific game mode; can be expert/e/e_hm/e_pp/expert_prehardmode/expert_hardmode/expert_postplantera/expert_post_planteraexpert_after_plantera/m/master/m_hm...
 * First unnamed parameter
 * Second unnamed parameter
 * Third unnamed parameter

Use this parameter to wrap the variable in the magic word  (documentation). Only available when using a second unnamed parameter.
 * format = y/yes

Use this parameter to output the value exactly as it exists in the source code. See Module:Npcinfo for information about how to interpret the output values. Only available when using a second unnamed parameter. Requires the second unnamed parameter to constitute an original variable name, i.e. no aliases are allowed. is still applicable. Renders the second unnamed parameter case-sensitive.
 * raw = y/yes

Examples

 * The Eye of Cthulhu has  /   health and deals   damage. It is immune to the   debuff.
 * results in:
 * The Eye of Cthulhu has /  health and deals  damage. It is immune to the  debuff.


 * results in:
 * results in:
 * results in:
 * results in:
 * results in:
 * results in: