Difference between revisions of "NPC info"
Stratonian (talk | contribs) m |
Stratonian (talk | contribs) m (critters category) |
||
(20 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 7: | Line 16: | ||
-->{{#arraydefine:organizationRow|{{#switch:{{lc:{{{organization|}}}}}<!-- | -->{{#arraydefine:organizationRow|{{#switch:{{lc:{{{organization|}}}}}<!-- | ||
cultures | cultures | ||
− | -->|elaniens=,class="skill-infobox-row-heading", | + | -->|elaniens=,class="skill-infobox-row-heading",'''Culture''',,class="skill-infobox-row-data",[[Elaniens]] |
− | |faidens=,class="skill-infobox-row-heading", | + | |faidens=,class="skill-infobox-row-heading",'''Culture''',,class="skill-infobox-row-data",[[Faidens]] |
− | |quaddari=,class="skill-infobox-row-heading", | + | |quaddari=,class="skill-infobox-row-heading",'''Culture''',,class="skill-infobox-row-data",[[Quaddari]] |
− | |yorners=,class="skill-infobox-row-heading", | + | |yorners=,class="skill-infobox-row-heading",'''Culture''',,class="skill-infobox-row-data",[[Yorners]]<!-- |
camp creatures | camp creatures | ||
-->|archosaurs=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Archosaurs]] | -->|archosaurs=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Archosaurs]] | ||
− | |boars=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Boars]] | + | |boars=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Boars]] |
− | |fingi=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Fingi]] | + | |fingi=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Fingi]] |
− | |gnats=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Gnats]] | + | |gnats=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Gnats]] |
− | |imps=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Imps]] | + | |imps=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[: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=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[: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=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Leafies]] |
− | |lost fronts=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Lost Fronts]] | + | |lost fronts=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Lost Fronts]] |
− | |mutant rats=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Mutant rats]] | + | |mutant rats=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Mutant rats]] |
− | |occultists=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Occultists]] | + | |occultists=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Occultists]] |
− | |spiders=,class="skill-infobox-row-heading",Enemy Type,,class="skill-infobox-row-data",[[:Category:Spiders]] | + | |spiders=,class="skill-infobox-row-heading",'''Enemy Type''',,class="skill-infobox-row-data",[[:Category:Spiders]] |
− | |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]] |
− | |world bosses=,class="skill-infobox-row-heading",Type,,class="skill-infobox-row-data",[[:Category:World bosses{{!}}World Boss]] | + | |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]] | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{name|}}}<!-- if name parameter is not given | -->{{#if:{{{name|}}}<!-- if name parameter is not given | ||
-->||{{#if:{{#arrayprint:organizationRow}}<!-- if the organization is correct (i.e. organizationRow exists) | -->||{{#if:{{#arrayprint:organizationRow}}<!-- if the organization is correct (i.e. organizationRow exists) | ||
− | -->|[[Category:{{ucfirst:{{{organization}}}}}]]}}}}<!-- add to category | + | -->|[[Category:{{ucfirst:{{{organization}}}}}]]<!-- add to specific category |
+ | -->|[[Category:NPCs]]}}}}<!-- else add to NPC category | ||
quests | quests | ||
Line 41: | Line 52: | ||
NPC image | NPC image | ||
-->{{#if:{{{icon|}}}<!-- if icon exists | -->{{#if:{{{icon|}}}<!-- if icon exists | ||
− | -->|[[{{{icon}}}| | + | -->|<span class="{{#var:disposition class}}">[[{{{icon}}}|85px]]</span><!-- use provided icon |
− | -->|{{#vardefine: | + | -->|{{#vardefine:defaultIcon|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}} Icon.png}}<!-- else use default icon |
− | -->{{#ifexist:{{#var: | + | -->{{#ifexist:{{#var:defaultIcon}}<!-- if default icon exists |
− | -->|[[{{#var: | + | -->|<span class="{{#var:disposition class}}">[[{{#var:defaultIcon}}|85px]]</span><!-- use default icon |
− | -->|[[{{#var: | + | -->|[[{{#var:defaultIcon}}|Upload NPC icon.]]}}}}<!-- else prompt for icon upload |
− | -->{{# | + | -->{{#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--> | ||
|- | |- | ||
− | {{#if:{{{level|}}}|{{ | + | {{#if:{{{level|}}}|{{InfoboxRow|'''[[Level]]'''|{{{level}}}}}}} |
|- | |- | ||
− | {{#if:{{{health|}}}|{{ | + | {{#if:{{{health|}}}|{{InfoboxRow|'''[[Health]]'''|{{{health}}}}}}} |
|- | |- | ||
− | {{#if:{{{location|}}}|{{ | + | {{#if:{{{location|}}}|{{InfoboxRow|'''Location'''|[[{{{location}}}]]}}}} |
|- | |- | ||
− | {{#if:{{{quests|}}}|{{ | + | {{#if:{{{quests|}}}|{{InfoboxRow|'''Involved In'''|{{#arrayprint:questText|<br>|@|[[@]]}}}}}} |
|- | |- | ||
− | {{#if:{{{image|}}}|{{ | + | {{#if:{{{image|}}}|{{InfoboxRow|'''Image'''|[[File:{{{image|}}}|250x200px]]}}<!-- provided image |
-->|{{#vardefine:defaultImage|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.jpg}}<!-- get default image | -->|{{#vardefine:defaultImage|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.jpg}}<!-- get default image | ||
-->{{#ifexist:{{#var:defaultImage}}<!-- if default image exists | -->{{#ifexist:{{#var:defaultImage}}<!-- if default image exists | ||
− | -->|[[{{#var:defaultImage}}|250x200px]]<!-- use default image | + | -->|{{InfoboxRow|'''Image'''|[[{{#var:defaultImage}}|250x200px]]}}}}<!-- 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.}}}}}<!-- |
+ | PROPERTIES | ||
+ | -->{{#if:{{{name|}}}|<!-- if there is a name parameter don't set any properties | ||
+ | -->|{{#if:{{{location|}}}|{{#set:Has location={{{location}}}}}}}<!-- set 'Has location' property | ||
+ | -->}}</includeonly><noinclude>{{NPC info/Documentation}}</noinclude> |
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.