Difference between revisions of "NPC info"

m
m (critters category)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><div class="infobox-right"><!--
 
<includeonly><div class="infobox-right"><!--
 
DEFINITIONS
 
DEFINITIONS
 +
 +
disposition
 +
used for CSS classes
 +
-->{{#vardefine:disposition class|{{#switch:{{lc:{{{disposition|}}}}}
 +
|ally=NPC-ally
 +
|enemy=NPC-enemy
 +
|neutral=NPC-neutral
 +
|#default=NPC-neutral<!-- NPCs with no disposition are assumed to be neutral -->
 +
}}}}<!--
  
 
organization
 
organization
Line 25: Line 34:
 
|wolves=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Wolves]]<!--
 
|wolves=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Wolves]]<!--
 
unique
 
unique
-->|wandering bosses=,class="skill-infobox-row-heading",'''Type''',,class="skill-infobox-row-data",[[:Category:Wandering bosses{{!}}Wandering Boss]]
+
-->|critters=,class="skill-infobox-row-heading",'''Type''',,class="skill-infobox-row-data",[[:Category:Critters{{!}}Critter]]
 +
|wandering bosses=,class="skill-infobox-row-heading",'''Type''',,class="skill-infobox-row-data",[[: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=,class="skill-infobox-row-heading",'''Type''',,class="skill-infobox-row-data",[[:Category:World bosses{{!}}World Boss]]
 
}}}}<!--
 
}}}}<!--
Line 42: Line 52:
 
NPC image
 
NPC image
 
-->{{#if:{{{icon|}}}<!-- if icon exists
 
-->{{#if:{{{icon|}}}<!-- if icon exists
-->|[[{{{icon}}}|278px]]<!-- use provided icon
+
-->|<span class="{{#var:disposition class}}">[[{{{icon}}}|85px]]</span><!-- use provided icon
-->|{{#vardefine:defaultImage|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}} Icon.png}}<!-- else use default icon
+
-->|{{#vardefine:defaultIcon|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}} Icon.png}}<!-- else use default icon
-->{{#ifexist:{{#var:defaultImage}}<!-- if default icon exists
+
-->{{#ifexist:{{#var:defaultIcon}}<!-- if default icon exists
-->|[[{{#var:defaultImage}}|278px]]<!-- use default icon
+
-->|<span class="{{#var:disposition class}}">[[{{#var:defaultIcon}}|85px]]</span><!-- use default icon
-->|[[{{#var:defaultImage}}|Upload NPC icon.]]}}}}<!-- else prompt for icon upload
+
-->|[[{{#var:defaultIcon}}|Upload NPC icon.]]}}}}<!-- else prompt for icon upload
 
-->{{#if:{{{random|}}}|<br><small>(This NPC's appearance may change randomly.)</small>}}</center>
 
-->{{#if:{{{random|}}}|<br><small>(This NPC's appearance may change randomly.)</small>}}</center>
 
|-
 
|-
! colspan="2" class="{{#switch:{{lc:{{{disposition|}}}}}
+
! colspan="2" class="{{#var:disposition class}}" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name -->
|ally=NPC-ally
 
|enemy=NPC-enemy
 
|neutral=NPC-neutral
 
|#default=NPC-neutral<!-- NPCs with no disposition are assumed to be neutral -->
 
}}" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name -->
 
 
|-
 
|-
 
{{#arrayprint:organizationRow|{{!}}}}<!-- prints the organization as a row-->
 
{{#arrayprint:organizationRow|{{!}}}}<!-- prints the organization as a row-->

Latest revision as of 18:08, 27 March 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.