Difference between revisions of "NPC info"
Stratonian (talk | contribs) m (NPC icon) |
Stratonian (talk | contribs) m (critters category) |
||
(2 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}}}|85px]]<!-- use provided icon | + | -->|<span class="{{#var:disposition class}}">[[{{{icon}}}|85px]]</span><!-- use provided icon |
-->|{{#vardefine:defaultIcon|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}} Icon.png}}<!-- else use default icon | -->|{{#vardefine:defaultIcon|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}} Icon.png}}<!-- else use default icon | ||
-->{{#ifexist:{{#var:defaultIcon}}<!-- if default icon exists | -->{{#ifexist:{{#var:defaultIcon}}<!-- if default icon exists | ||
− | -->|[[{{#var:defaultIcon}}|85px]]<!-- use default icon | + | -->|<span class="{{#var:disposition class}}">[[{{#var:defaultIcon}}|85px]]</span><!-- use default icon |
-->|[[{{#var:defaultIcon}}|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="{{# | + | ! colspan="2" class="{{#var:disposition class}}" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name --> |
− | |||
− | |||
− | |||
− | |||
− | }}" | <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]
- icon: 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.
- random: Displays a note stating that the NPC's appearance may change randomly.
- Optional.
- Notes: Set to any value to enable.
- name: 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.
- disposition: 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
".
- image: 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
Errors[edit]
No description was provided. Add a description parameter.