Template:Ai npcs list/doc

From Terraria Wiki
Jump to navigation Jump to search

This template generates a list of all enemies, NPCs, and critters that follow a certain AI.

The result list is based on the cargo table, and will be output in an {{itemlist}}, with each NPC wrapped in an {{item}}. You can use {{options}} to affect properties of every {{item}}.

Usage

{{ ai npcs list | <AI name> | width = <width of the resulting itemlist> | add = <NPCs to add to the list> | remove = <NPCs to remove from the list> }}

All parameters are optional.

First unnamed parameter

Name of the AI. Defaults to the name of the page.

width

Use this parameter to specify the width of every {{item}} in the {{itemlist}}. Default is 12em.

add

Define a comma-separated list of NPCs here that will be integrated into the automatically generated list.

remove

Define a comma-separated list of NPCs here that will be clipped from the list.

Examples

Code Result
{{options/set|item|maxsize=100x100px|nolink=y}}
{{ai npcs list|Butterfly AI|width=15em|add=Moon Lord|remove=Butterfly}}
{{options/reset|item}}
  • Gold ButterflyGold Butterfly(Desktop, Console and Mobile versions)
  • Hell ButterflyHell Butterfly(Desktop, Console and Mobile versions)
  • Moon LordMoon Lord(Desktop, Console and Mobile versions)
  • Prismatic LacewingPrismatic Lacewing(Desktop, Console and Mobile versions)