Template:Infobox NPC: Difference between revisions
From HorizonXI Wiki
m (added option to specify image height restriction) |
m (output category of affiliation corrected) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
--><div class="ffxi-border-box" style="margin:0.5em; border-radius:5px; background:#FFF; float:right;"><!-- | --><div class="ffxi-border-box" style="margin:0.5em; border-radius:5px; background:#FFF; float:{{default|{{{float|}}}|right}};"><!-- | ||
--><div style="background:#D2E8E8; border-radius:5px; padding:0.2em; margin:0.1em;"><!-- | --><div style="background:#D2E8E8; border-radius:5px; padding:0.2em; margin:0.1em;"><!-- | ||
-->{{#if:{{{image|}}}|<div style="text-align:center;">[[File:{{{image}}}|{{default|{{{imagewidth|}}}|200}}{{#if:{{{imageheight|}}}|x{{{imageheight}}}}}px]]</div>|{{NPC-image-stub}}}}<!-- | -->{{#if:{{{image|}}}|<div style="text-align:center;">[[File:{{{image}}}|{{default|{{{imagewidth|}}}|200}}{{#if:{{{imageheight|}}}|x{{{imageheight}}}}}px]]</div>|{{NPC-image-stub}}}}<!-- | ||
Line 21: | Line 21: | ||
|- {{#if:{{{affiliation|}}}||style="display:none;"}} | |- {{#if:{{{affiliation|}}}||style="display:none;"}} | ||
| <small>Affiliation:</small> | | <small>Affiliation:</small> | ||
| [[:Category:{{{affiliation}}} NPCs|{{{affiliation}}}]] | | [[:Category:{{{affiliation}}}/NPCs|{{{affiliation}}}]] | ||
|- {{#if:{{{occupation|}}}||style="display:none;"}} | |- {{#if:{{{occupation|}}}||style="display:none;"}} | ||
| <small>Occupation:</small> | | <small>Occupation:</small> | ||
| {{{occupation}}} | | {{#ifexist:Category:{{Plural|{{{occupation}}}}}|[[:Category:{{Plural|{{{occupation}}}}}|{{{occupation}}}]]|{{{occupation}}}}} | ||
|- {{#if:{{{status|}}}||style="display:none;"}} | |- {{#if:{{{status|}}}||style="display:none;"}} | ||
| <small>Status:</small> | | <small>Status:</small> | ||
Line 121: | Line 120: | ||
| gender = Male | | gender = Male | ||
| bestiary = Hume | | bestiary = Hume | ||
| occupation = Scroll Merchant | |||
| job = | | job = | ||
| affiliation = Jeuno | | affiliation = Jeuno | ||
Line 131: | Line 131: | ||
| gender = Male | | gender = Male | ||
| bestiary = Hume | | bestiary = Hume | ||
| occupation = Scroll Merchant | |||
| job = | | job = | ||
| affiliation = Jeuno | | affiliation = Jeuno | ||
}} | }} | ||
|} | |} |
Latest revision as of 00:05, 30 August 2024
Usage
{{Infobox NPC | image = | name = | gender = | race = | bestiary = | job = | affiliation = | occupation = | status = | relatives = | location = }}
- image: An image of the NPC in-game.
- name: The NPC's name. Defaults to the page's name.
- gender: The NPC's gender. "Male," "Female," "Unknown" or "Not applicable".
- race: The NPC's race, such as "Elvaan".
- bestiary: The NPC's bestiary classification, if not one of the playable races.
- job: The job or jobs of the NPC, such as "Black Mage".
- affiliation: The NPC's national affiliation.
- occupation: The NPC's occupation, role, or position in society.
- status: "Alive", "Undead", "Active" (when referring to gods, demigods and related beings), "Imprisoned," "Deceased" or "Unknown." If imprisoned or deceased a short summary can be included.
- relatives: Spouses, siblings, parents, children, any other family members. If the character wields magic, was apprenticed to someone, or had an apprentice, then that person's teacher and/or student can be listed here. Please put the relationship in parenthesis.
Examples
Code | Result | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox NPC | image = Trion.JPG | name = Trion | gender = Male | race = Elvaan | job = [[Paladin]] | affiliation = San d'Oria | occupation = Prince Royal }} |
Trion
| ||||||||||
{{Infobox NPC | image = Chaperix.png | name = Chaperix | gender = Male | bestiary = Goblin | job = All-Rounder, Walloper, Barrager, or Spellslinger | affiliation = Moblin Maze Mongers }} |
Chaperix
| ||||||||||
{{Infobox NPC | image = Hasim.png | name = Hasim | gender = Male | bestiary = Hume | occupation = Scroll Merchant | job = | affiliation = Jeuno }} |
|