注意:1.4.5 的更新内容量较大,页面上很可能仍有内容尚未更新。
如中文 wiki 信息过时,可以参考英文 wiki 对应页面。
Terraria Wiki:项目/1.4.5 获取 wiki 状态与更新指南

Template:NpcNameFromId

来自Terraria Wiki
跳转到导航 跳转到搜索
Important.svg
CAUTION: Terraria Wiki code is complex!!!
If you want to use this code on another wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!
Remember that content on a wiki is more important than fancy formatting.
Template-info.svg 文档 以下文档来自Template:NpcNameFromId/doc。(编辑 | 历史

This template returns the name of an NPC based on its NPC ID.

Usage

{{ npcNameFromId | <NPC ID> }}

First unnamed parameter

ID of the NPC.

Examples

Code Result
{{npcNameFromId|-59}} Big Honey Hornet
{{npcNameFromId|342}} Gingerbread Man
{{npcNameFromId| 342 }} Gingerbread Man
{{npcNameFromId|}}
{{npcNameFromId|1380}}

See also