Template:If/NPC/doc

From Palia Wiki
Jump to navigation Jump to search

Usage

{{If/NPC}} functions similarly to the {{#if:}} conditional. By providing the name of an NPC

Syntax

{{If/NPC|NPC Name|Conditionally True|Conditionally False}}

Examples

Description Example Output
Normal usage
{{If/NPC|Ashura|True|False}}
{{If/NPC|Eshe|True|False}}
{{If/NPC|Bob|True|False}}
{{If/NPC|Steve|True|False}}
True

True

False

False

False output not required
{{If/NPC|Ashura|True}}
{{If/NPC|Eshe|True}}
{{If/NPC|Bob|True}}
{{If/NPC|Steve|True}}
True

True