(based on 1.4.0.2) |
(1.4.1 update) |
||
Line 1: | Line 1: | ||
{{#if:{{#dplvar:_npcinfo:name:}}||{{#dplvar:set|_npcinfo:name:|(unknown)<!-- |
{{#if:{{#dplvar:_npcinfo:name:}}||{{#dplvar:set|_npcinfo:name:|(unknown)<!-- |
||
− | based on pc 1.4. |
+ | based on pc 1.4.1 |
-->|_npcinfo:name:-65|Big Stingy Hornet<!-- |
-->|_npcinfo:name:-65|Big Stingy Hornet<!-- |
||
Line 728: | Line 728: | ||
-->|_npcinfo:name:661|Prismatic Lacewing<!-- |
-->|_npcinfo:name:661|Prismatic Lacewing<!-- |
||
-->|_npcinfo:name:662|Pirate's Curse<!-- |
-->|_npcinfo:name:662|Pirate's Curse<!-- |
||
+ | -->|_npcinfo:name:663|Princess<!-- |
||
+ | -->|_npcinfo:name:664|The Torch God<!-- |
||
-->}}}}<!-- |
-->}}}}<!-- |
||
-->{{#if:{{{1|}}}|{{#dplvar:_npcinfo:name:{{#vardefineecho:_dummy|{{{1|}}}}}}}}}<!-- |
-->{{#if:{{{1|}}}|{{#dplvar:_npcinfo:name:{{#vardefineecho:_dummy|{{{1|}}}}}}}}}<!-- |
Revision as of 23:48, 13 October 2020
Documentation The documentation below is transcluded from Template:NpcNameFromId/doc. (edit | history)
[purge]
This template returns the name of an NPC based on its NPC ID.
Usage
{{NpcNameFromId | <NPC id> (optional) }}
- 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
- {{npcIdFromName}}