Template:Living preferences/doc

From Terraria Wiki
Jump to navigation Jump to search

This template may be inserted into the page of any NPC; it will generate and fill a table with the NPC's corresponding biome and neighbor preferences.

Alternatively, if used on a page of a biome which affects NPC happiness, it will display a table with the NPCs that are affected by it.

Usage

All parameters are optional.

{{ living preferences | <NPC/biome name> | npc = <NPC name> | id = <NPC ID> | biome = <biome name> }}

By default, the template will not need any parameters if used on a page that is a valid NPC or biome name. If not used on such a page, or in case of unexpected behavior, the set of parameters allows manually specifying the NPC or biome name. No more than one of the available parameters should be used.

First unnamed parameter

Name of the NPC or biome. The template will automatically detect whether the parameter value is the name of a biome that it has data for; if that is not the case, it will assert that the value is an NPC name.

npc

Name of the NPC.

id

ID of the NPC.

biome

Name of the biome.

See also

  • {{living preferences/check}}, a template used for displaying information about a specific NPC-to-NPC or NPC-to-biome relation