Difference between revisions of "NPC info"

m (critters category)
m (removed repetition)
 
Line 16: Line 16:
 
-->{{#arraydefine:organizationRow|{{#switch:{{lc:{{{organization|}}}}}<!--
 
-->{{#arraydefine:organizationRow|{{#switch:{{lc:{{{organization|}}}}}<!--
 
cultures
 
cultures
-->|elaniens=,class="skill-infobox-row-heading",'''Culture''',,class="skill-infobox-row-data",[[Elaniens]]
+
-->|elaniens=Culture,[[Elaniens]]
|faidens=,class="skill-infobox-row-heading",'''Culture''',,class="skill-infobox-row-data",[[Faidens]]
+
|faidens=Culture,[[Faidens]]
|quaddari=,class="skill-infobox-row-heading",'''Culture''',,class="skill-infobox-row-data",[[Quaddari]]
+
|quaddari=Culture,[[Quaddari]]
|yorners=,class="skill-infobox-row-heading",'''Culture''',,class="skill-infobox-row-data",[[Yorners]]<!--
+
|yorners=Culture,[[Yorners]]<!--
 
camp creatures
 
camp creatures
-->|archosaurs=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Archosaurs]]
+
-->|archosaurs=Enemy Type,[[:Category:Archosaurs]]
|boars=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Boars]]
+
|boars=Enemy Type,[[:Category:Boars]]
|fingi=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Fingi]]
+
|fingi=Enemy Type,[[:Category:Fingi]]
|gnats=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Gnats]]
+
|gnats=Enemy Type,[[:Category:Gnats]]
|imps=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Imps]]
+
|imps=Enemy Type,[[:Category:Imps]]
|insects=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Insects]]<!-- no official name; contains bomboslug, gravedigger fly, termite queen etc -->
+
|insects=Enemy Type,[[:Category:Insects]]<!-- no official name; contains bomboslug, gravedigger fly, termite queen etc -->
|leafies=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Leafies]]
+
|leafies=Enemy Type,[[:Category:Leafies]]
|lost fronts=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Lost Fronts]]
+
|lost fronts=Enemy Type,[[:Category:Lost Fronts]]
|mutant rats=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Mutant rats]]
+
|mutant rats=Enemy Type,[[:Category:Mutant rats]]
|occultists=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Occultists]]
+
|occultists=Enemy Type,[[:Category:Occultists]]
|spiders=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Spiders]]
+
|spiders=Enemy Type,[[:Category:Spiders]]
|wolves=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Wolves]]<!--
+
|wolves=Enemy Type,[[:Category:Wolves]]<!--
 
unique
 
unique
-->|critters=,class="skill-infobox-row-heading",'''Type''',,class="skill-infobox-row-data",[[:Category:Critters{{!}}Critter]]
+
-->|critters=Type,[[:Category:Critters{{!}}Critter]]<!-- no official name; contains NPCs with 1 health -->
|wandering bosses=,class="skill-infobox-row-heading",'''Type''',,class="skill-infobox-row-data",[[:Category:Wandering bosses{{!}}Wandering Boss]]
+
|wandering bosses=Type,[[:Category:Wandering bosses{{!}}Wandering Boss]]
|world bosses=,class="skill-infobox-row-heading",'''Type''',,class="skill-infobox-row-data",[[:Category:World bosses{{!}}World Boss]]
+
|world bosses=Type,[[:Category:World bosses{{!}}World Boss]]
 
}}}}<!--
 
}}}}<!--
 
-->{{#if:{{{name|}}}<!-- if name parameter is not given
 
-->{{#if:{{{name|}}}<!-- if name parameter is not given
Line 61: Line 61:
 
! colspan="2" class="{{#var:disposition class}}" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name -->
 
! colspan="2" class="{{#var:disposition class}}" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name -->
 
|-
 
|-
{{#arrayprint:organizationRow|{{!}}}}<!-- prints the organization as a row-->
+
{{#if:{{#arraysize:organizationRow}}|{{InfoboxRow|'''{{#arrayindex:organizationRow|0}}'''|{{#arrayindex:organizationRow|1}}}}}}<!-- prints the organization as a row-->
 
|-
 
|-
 
{{#if:{{{level|}}}|{{InfoboxRow|'''[[Level]]'''|{{{level}}}}}}}
 
{{#if:{{{level|}}}|{{InfoboxRow|'''[[Level]]'''|{{{level}}}}}}}

Latest revision as of 20:29, 16 May 2024

Description[edit]

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

Usage[edit]

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

Parameters[edit]

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[edit]

No description was provided. Add a description parameter.