Template:If/NPC

From Palia Wiki
Jump to navigation Jump to search
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.
This template has existing translations, relatives, or sub-templates:

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