Difference between revisions of "NPC info"

m
m (added disposition variable instead of relying on NPC organization)
Line 8: Line 8:
 
cultures
 
cultures
 
-->|elaniens=,class="skill-infobox-row-heading",[[:Category:Cultures{{!}}Culture]],,class="skill-infobox-row-data",[[Elaniens]]{{#if:{{{name}}}{{!}}[[Category:Elaniens]]}}
 
-->|elaniens=,class="skill-infobox-row-heading",[[:Category:Cultures{{!}}Culture]],,class="skill-infobox-row-data",[[Elaniens]]{{#if:{{{name}}}{{!}}[[Category:Elaniens]]}}
|faidens=,class="skill-infobox-row-heading",[[:Category:Cultures{{!}}Culture]],,class="skill-infobox-row-heading",[[Faidens]]{{#if:{{{name}}}{{!}}[[Category:Faidens]]}}
+
|faidens=,class="skill-infobox-row-heading",[[:Category:Cultures{{!}}Culture]],,class="skill-infobox-row-data",[[Faidens]]{{#if:{{{name}}}{{!}}[[Category:Faidens]]}}
|quaddari=,class="skill-infobox-row-heading",[[:Category:Cultures{{!}}Culture]],,class="skill-infobox-row-heading",[[Quaddari]]{{#if:{{{name}}}{{!}}[[Category:Quaddari]]}}
+
|quaddari=,class="skill-infobox-row-heading",[[:Category:Cultures{{!}}Culture]],,class="skill-infobox-row-data",[[Quaddari]]{{#if:{{{name}}}{{!}}[[Category:Quaddari]]}}
|yorners=,class="skill-infobox-row-heading",[[:Category:Cultures{{!}}Culture]],,class="skill-infobox-row-heading",[[Yorners]]{{#if:{{{name}}}{{!}}[[Category:Yorners]]}}<!--
+
|yorners=,class="skill-infobox-row-heading",[[:Category:Cultures{{!}}Culture]],,class="skill-infobox-row-data",[[Yorners]]{{#if:{{{name}}}{{!}}[[Category:Yorners]]}}<!--
 
enemy types (note: rename "Enemy" to an official name)
 
enemy types (note: rename "Enemy" to an official name)
-->|gnats=,class="skill-infobox-row-heading",Enemy,,class="skill-infobox-row-heading",[[:Category:Gnats]]{{#if:{{{name}}}{{!}}[[Category:Gnats]]}}
+
-->|gnats=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Gnats]]{{#if:{{{name}}}{{!}}[[Category:Gnats]]}}
|imps=,class="skill-infobox-row-heading",Enemy,,class="skill-infobox-row-heading",[[:Category:Imps]]{{#if:{{{name}}}{{!}}[[Category:Imps]]}}
+
|imps=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Imps]]{{#if:{{{name}}}{{!}}[[Category:Imps]]}}
|leaves=,class="skill-infobox-row-heading",Enemy,,class="skill-infobox-row-heading",[[:Category:Leaves]]{{#if:{{{name}}}{{!}}[[Category:Leaves]]}}
+
|leaves=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Leaves]]{{#if:{{{name}}}{{!}}[[Category:Leaves]]}}
|mutant rats=,class="skill-infobox-row-heading",Enemy,,class="skill-infobox-row-heading",[[:Category:Mutant Rats]]{{#if:{{{name}}}{{!}}[[Category:Mutant Rats]]}}
+
|mutant rats=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Mutant Rats]]{{#if:{{{name}}}{{!}}[[Category:Mutant Rats]]}}
|occultists=,class="skill-infobox-row-heading",Enemy,,class="skill-infobox-row-heading",[[:Category:Occultists]]{{#if:{{{name}}}{{!}}[[Category:Occultists]]}}
+
|occultists=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Occultists]]{{#if:{{{name}}}{{!}}[[Category:Occultists]]}}
|spiders=,class="skill-infobox-row-heading",Enemy,,class="skill-infobox-row-heading",[[:Category:Spiders]]{{#if:{{{name}}}{{!}}[[Category:Spiders]]}}
+
|spiders=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Spiders]]{{#if:{{{name}}}{{!}}[[Category:Spiders]]}}<!--
 +
unique enemies
 +
-->|wandering bosses=,class="skill-infobox-row-heading",Boss Type,,class="skill-infobox-row-data",[[:Category:Wandering Bosses{{!}}Wandering Boss]]{{#if:{{{name}}}{{!}}[[Category:Wandering Boss]]}}
 +
|world bosses=,class="skill-infobox-row-heading",Boss Type,,class="skill-infobox-row-data",[[:Category:World Bosses{{!}}World Boss]]{{#if:{{{name}}}{{!}}[[Category:World Boss]]}}
 
}}}}<!--
 
}}}}<!--
  
Line 33: Line 36:
 
</center>
 
</center>
 
|-
 
|-
! colspan="2" class="{{#switch:{{#arrayindex:organizationRow|2}}
+
! colspan="2" class="{{#switch:{{#lc:{{{disposition|}}}}}
|[[:Category:Cultures{{!}}Culture]]=NPC-ally<!-- NPCs with associated with a culture are assumed to be allies -->
+
|ally=NPC-ally
|Enemy=NPC-enemy
+
|enemy=NPC-enemy
|#default=NPC-neutral<!-- NPCs with no organization are assumed to be neutral -->
+
|neutral=NPC-neutral
 +
|#default=NPC-neutral<!-- NPCs with no disposition are assumed to be neutral -->
 
}}" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name -->
 
}}" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name -->
 
|-
 
|-

Revision as of 20:50, 4 March 2023

Description

Displays an information page about a non-player character (NPC).

Usage

{{NPC info|<icon=icon>|<name=name>|<description=description>|<disposition=disposition>|<organization=organization>|<level=level>|<quest=Quest 1, Quest 2>}}

Parameters

Arrow.pngicon: An icon of the NPC.
Optional. Defaults to '{{PAGENAME}} Icon.png'.
Notes: Only use if the icon name differs from the name of the page.
Arrow.pngrandom: Displays a note stating that the NPC's appearance may change randomly.
Optional.
Notes: Set to any value to enable.
Arrow.pngname: The name of the NPC.
Optional. Defaults to '{{PAGENAME}}'.
Notes: Only use if the template is on a different page to the NPC's main article.
Arrow.pngdisposition: The NPC's disposition toward the player.
Optional. Defaults to 'neutral'.
Notes: Used to determine the background color of the table heading. Choose from "ally", "neutral", or "enemy".
Arrow.pngdescription: A description of the NPC.
Optional.
Arrow.pnglevel: The NPC's level. Can be a range of levels.
Optional.
Arrow.pnghealth: The NPC's health. Can be a range of values.
Optional.
Arrow.pnglocation: The NPC's location.
Optional.
Arrow.pngorganization: The NPC's organization.
Optional.
Arrow.pngimage: An image of the NPC.
Optional. Defaults to '{{PAGENAME}}.jpg'.
Notes: Only use if the image name differs from the name of the page.

Possible organizations:

Cultures
Elaniens
Faidens
Quaddari
Yorners
Camp Creatures
Archosaurs
Boars
Gnats
Fingi
Imps
Insects (no official name; contains bomboslug, gravedigger fly, termite queen, etc)
Leafies
Lost Fronts
Mutant Rats
Occultists
Spiders
Wolves
Unique
Critters
Wandering Bosses
World Bosses
Arrow.pngquests: The semicolon-separated names of quests the NPC is a part of.
Optional.

Errors

No description was provided. Add a description parameter.