Difference between revisions of "NPC info"
Stratonian (talk | contribs) (new parameter (from https://wiki.guildwars2.com/wiki/Template:NPC_infobox)) |
Stratonian (talk | contribs) m (added NPC icon) |
||
Line 40: | Line 40: | ||
| colspan="2" | <center><!-- | | colspan="2" | <center><!-- | ||
NPC image | NPC image | ||
− | -->{{#if:{{{ | + | -->{{#if:{{{icon|}}}<!-- if icon exists |
− | -->|[[{{{ | + | -->|[[{{{icon}}}|278px]]<!-- use provided icon |
− | -->|{{#vardefine:defaultImage|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}. | + | -->|{{#vardefine:defaultImage|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}} Icon.png}}<!-- else use default icon |
− | -->{{#ifexist:{{#var:defaultImage}}<!-- if default | + | -->{{#ifexist:{{#var:defaultImage}}<!-- if default icon exists |
− | -->|[[{{#var:defaultImage}}|278px]]<!-- use default | + | -->|[[{{#var:defaultImage}}|278px]]<!-- use default icon |
− | -->|[[{{#var:defaultImage}}|Upload NPC | + | -->|[[{{#var:defaultImage}}|Upload NPC icon.]]}}}}<!-- else prompt for icon upload |
-->{{#switch:{{lc:{{{random|no}}}}}|y|yes=<small>(This NPC's appearance may change randomly.)</small>}}</center> | -->{{#switch:{{lc:{{{random|no}}}}}|y|yes=<small>(This NPC's appearance may change randomly.)</small>}}</center> | ||
|- | |- | ||
Line 64: | Line 64: | ||
|- | |- | ||
{{#if:{{{quests|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Involved In'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{#arrayprint:questText|<br>|@|[[@]]}}}}<!-- formats the quests array --> | {{#if:{{{quests|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Involved In'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{#arrayprint:questText|<br>|@|[[@]]}}}}<!-- formats the quests array --> | ||
+ | |- | ||
+ | {{#if:{{{image|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Image'''{{!}}{{!}}style="width:100%"{{!}}[[File:{{{image|}}}|250x200px]]<!-- provided image | ||
+ | -->|{{#vardefine:defaultImage|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.jpg}}<!-- get default image | ||
+ | -->{{#ifexist:{{#var:defaultImage}}<!-- if default image exists | ||
+ | -->|[[{{#var:defaultImage}}|278px]]<!-- use default image | ||
+ | -->}}}} | ||
|}</div><!-- | |}</div><!-- | ||
DESCRIPTION | DESCRIPTION | ||
-->{{{description|{{error|No description provided. Add a description parameter.}}}}}</includeonly><noinclude>{{NPC info/Documentation}}</noinclude> | -->{{{description|{{error|No description provided. Add a description parameter.}}}}}</includeonly><noinclude>{{NPC info/Documentation}}</noinclude> |
Revision as of 11:21, 5 January 2024
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.