Difference between revisions of "NPC info"
Stratonian (talk | contribs) m |
Stratonian (talk | contribs) m (better NPC info) |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><div class="infobox-right"><!-- |
− | {| class="wikitable" style=" | + | DEFINITIONS |
+ | |||
+ | organization | ||
+ | used for categorization and determining infobox color | ||
+ | if a name parameter is given, it is assumed that the template isn't on the NPC's main article, therefore it isn't categorized | ||
+ | -->{{#arraydefine:organizationRow|{{#switch:{{lc:{{{organization|}}}}}<!-- | ||
+ | cultures | ||
+ | -->|elaniens=,[[:Category:Cultures{{!}}Culture]],,[[Elaniens]]{{#if:{{{name}}}{{!}}[[Category:Elaniens]]}} | ||
+ | |faidens=,[[:Category:Cultures{{!}}Culture]],,[[Faidens]]{{#if:{{{name}}}{{!}}[[Category:Faidens]]}} | ||
+ | |quaddari=,[[:Category:Cultures{{!}}Culture]],,[[Quaddari]]{{#if:{{{name}}}{{!}}[[Category:Quaddari]]}} | ||
+ | |yorners=,[[:Category:Cultures{{!}}Culture]],,[[Yorners]]{{#if:{{{name}}}{{!}}[[Category:Yorners]]}}<!-- | ||
+ | enemy types (note: rename "Enemy" to an official name) | ||
+ | -->|imps=,Enemy,,[[Imp|Imps]]{{#if:{{{name}}}{{!}}[[Category:Imps]]}} | ||
+ | |leaves=,Enemy,,[[Leaf|Leaves]]{{#if:{{{name}}}{{!}}[[Category:Leaves]]}} | ||
+ | |mutant rats=,Enemy,,[[Mutant Rat|Mutant Rats]]{{#if:{{{name}}}{{!}}[[Category:Mutant Rats]]}} | ||
+ | |occultists=,Enemy,,[[Occultist|Occultists]]{{#if:{{{name}}}{{!}}[[Category:Occultists]]}} | ||
+ | |spiders=,Enemy,,[[Spider|Spiders]]{{#if:{{{name}}}{{!}}[[Category:Spiders]]}} | ||
+ | }}}}<!-- | ||
+ | |||
+ | quests | ||
+ | -->{{#arraydefine:quests|{{{quest|}}}|<br>}}<!-- | ||
+ | |||
+ | TABLE --> | ||
+ | {| class="wikitable" style="width: 100%;" | ||
|- | |- | ||
| colspan="2" | <center>{{#if:{{{image|}}}|[[{{{image}}}|85px]]<!-- use provided image --> | | colspan="2" | <center>{{#if:{{{image|}}}|[[{{{image}}}|85px]]<!-- use provided image --> | ||
Line 9: | Line 32: | ||
</center> | </center> | ||
|- | |- | ||
− | ! colspan="2" | + | ! colspan="2" class="{{#switch:{{#arrayindex:organizationRow|1}} |
+ | |[[:Category:Cultures{{!}}Culture]]=NPC-ally<!-- NPCs with associated with a culture are assumed to be allies --> | ||
+ | |Enemy=NPC-enemy | ||
+ | |#default=NPC-neutral<!-- NPCs with no organization are assumed to be neutral --> | ||
+ | }}" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name --> | ||
|- | |- | ||
− | {{# | + | {{#arrayprint:organizationRow|{{!}}}}<!-- prints the organization as a row--> |
− | |||
|- | |- | ||
| class="skill-infobox-row-heading" | '''[[Level]]''' | | class="skill-infobox-row-heading" | '''[[Level]]''' | ||
Line 20: | Line 46: | ||
| class="skill-infobox-row-data" | [[{{{location|Kwalat}}}]] | | class="skill-infobox-row-data" | [[{{{location|Kwalat}}}]] | ||
|- | |- | ||
− | {{#if:{{{quest|}}}|{{!}} | + | {{#if:{{{quest|}}}|{{!}}{{#arrayprint:quests|<br>|@|[[@]]}}}}<!-- formats the quests array --> |
− | + | |}</div></includeonly><noinclude>{{NPC info/Documentation}}</noinclude> | |
− | |} | ||
− | </div> | ||
− | </includeonly><noinclude>{{NPC info/Documentation}}</noinclude> |
Revision as of 20:33, 28 February 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
- 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
No description was provided. Add a description parameter.