Template:Infobox NPC: Difference between revisions

From HorizonXI Wiki
No edit summary
Tag: visualeditor-wikitext
m (output category of affiliation corrected)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--
-->{{categorize|{{{1|}}}|<!--
-->[[Category:NPCs]][[Category:{{{race}}} NPCs]][[Category:{{{affiliation}}} NPCs]]{{#if:{{{bestiary|}}}|[[Category:{{{bestiary}}} NPCs]]}}<!--
-->}}<!--


--><div class="ffxi-border-box" style="margin:0.5em; border-radius:5px; background:#FFF; display:table; 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|}}}|200px}}]]</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}}}}<!--
--><div style="text-align:center;">'''''{{default|{{{name|}}}|{{PAGENAME}}}}'''''</div><!--
--><div style="text-align:center;">'''''{{default|{{{name|}}}|{{PAGENAME}}}}'''''</div><!--
--><div style="width:200px;"><!--
-->
-->{{#if:{{{gender|}}}|<div style="display:table-row"><!--
{| style="width:200px;"
--><small style="display:table-cell; padding-right:0.5em;">Gender:</small><!--
|- {{#if:{{{gender|}}}||style="display: none;"}}
--><div style="display:table-cell;"> {{#switch:{{lc:{{{gender}}}}}|male = Male|female = Female|na|not applicable = Not Applicable|#default = Unknown}}</div><!--
| style="min-width: 70px;" | <small>Gender:</small>
--></div>}}<!--
| {{#switch:{{lc:{{{gender}}}}}|male = Male|female = Female|na|not applicable = Not Applicable|#default = Unknown}}
-->{{#if:{{{race|}}}|<div style="display:table-row"><!--
|- {{#if:{{{race|}}}||style="display:none;"}}
--><small style="display:table-cell; padding-right:0.5em;">Race:</small><!--
| <small>Race:</small>
--><div style="display:table-cell;"> [[:Category:{{{race}}} NPCs|{{{race}}}]]</div><!--
| [[:Category:{{{race}}} NPCs|{{{race}}}]]
--></div>}}<!--
|- {{#if:{{{bestiary|}}}||style="display:none;"}}
-->{{#if:{{{bestiary|}}}|<div style="display:table-row"><!--
| <small>Bestiary:</small>
--><small style="display:table-cell; padding-right:0.5em;">Bestiary:</small><!--
| [[:Category:{{{bestiary}}} NPCs|{{{bestiary}}}]]
--><div style="display:table-cell;"> [[:Category:{{{bestiary}}} NPCs|{{{bestiary}}}]]</div><!--
|- {{#if:{{{job|}}}||style="display:none;"}}
--></div>}}<!--
| <small>Job:</small>
-->{{#if:{{{job|}}}|<div style="display:table-row"><!--
| {{{job}}}
--><small style="display:table-cell; padding-right:0.5em;">Job:</small><!--
|- {{#if:{{{affiliation|}}}||style="display:none;"}}
--><div style="display:table-cell;"> {{{job}}}</div><!--
| <small>Affiliation:</small>
--></div>}}<!--
| [[:Category:{{{affiliation}}}/NPCs|{{{affiliation}}}]]
-->{{#if:{{{affiliation|}}}|<div style="display:table-row"><!--
|- {{#if:{{{occupation|}}}||style="display:none;"}}
--><small style="display:table-cell; padding-right:0.5em;">Affiliation:</small><!--
| <small>Occupation:</small>
--><div style="display:table-cell;"> [[:Category:{{{affiliation}}} NPCs|{{{affiliation}}}]]</div><!--
| {{#ifexist:Category:{{Plural|{{{occupation}}}}}|[[:Category:{{Plural|{{{occupation}}}}}|{{{occupation}}}]]|{{{occupation}}}}}
--></div>}}<!--
|- {{#if:{{{status|}}}||style="display:none;"}}
-->{{#if:{{{occupation|}}}|<div style="display:table-row"><!--
| <small>Status:</small>
--><small style="display:table-cell; padding-right:0.5em;">Occupation:</small><!--
| {{{status}}}
--><div style="display:table-cell;"> {{{occupation}}}</div><!--
|- {{#if:{{{relatives|}}}||style="display:none;"}}
--></div>}}<!--
| <small>Relatives:</small>
-->{{#if:{{{status|}}}|<div style="display:table-row"><!--
| {{{relatives}}}
--><small style="display:table-cell; padding-right:0.5em;">Status:</small><!--
|}
--><div style="display:table-cell;"> {{{status}}}</div><!--
</div></div><!--
--></div>}}<!--
-->{{#if:{{{relatives|}}}|<div style="display:table-row"><!--
--><small style="display:table-cell; padding-right:0.5em;">Relatives:</small><!--
--><div style="display:table-cell;"> {{{relatives}}}</div><!--
--></div>}}<!--
--></div><!--
--></div><!--
--></div><!--


--></includeonly></onlyinclude>
--></includeonly></onlyinclude>
[[Category:Templates|{{PAGENAMEE}}]][[de:Vorlage:Infobox NPC]][[ja:Template:インフォボクス NPC]]
[[Category:Templates|{{PAGENAMEE}}]]
==Usage==
==Usage==
<pre>
<pre>
Line 106: Line 95:
<pre>
<pre>
{{Infobox NPC
{{Infobox NPC
| image = Chaperix.png‎
| image = Chaperix.png
| name = Chaperix
| name = Chaperix
| gender = Male
| gender = Male
Line 116: Line 105:
|
|
{{Infobox NPC|nc
{{Infobox NPC|nc
| image = Chaperix.png‎
| image = Chaperix.png
| name = Chaperix
| name = Chaperix
| gender = Male
| gender = Male
Line 122: Line 111:
| job = All-Rounder, Walloper, Barrager, or Spellslinger
| job = All-Rounder, Walloper, Barrager, or Spellslinger
| affiliation = Moblin Maze Mongers
| affiliation = Moblin Maze Mongers
}}
|-
|
<pre>
{{Infobox NPC
| image = Hasim.png
| name = Hasim
| gender = Male
| bestiary = Hume
| occupation = Scroll Merchant
| job =
| affiliation = Jeuno
}}
</pre>
|
{{Infobox NPC|nc
| image = Hasim.png
| name = Hasim
| gender = Male
| bestiary = Hume
| occupation = Scroll Merchant
| job =
| 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
Gender: Male
Race: Elvaan
Bestiary: [[:Category:{{{bestiary}}} NPCs|{{{bestiary}}}]]
Job: Paladin
Affiliation: San d'Oria
Occupation: Prince Royal
Status: {{{status}}}
Relatives: {{{relatives}}}
{{Infobox NPC
| image = Chaperix.png
| name = Chaperix
| gender = Male
| bestiary = Goblin
| job = All-Rounder, Walloper, Barrager, or Spellslinger
| affiliation = Moblin Maze Mongers
}}
Chaperix
Gender: Male
Race: [[:Category:{{{race}}} NPCs|{{{race}}}]]
Bestiary: Goblin
Job: All-Rounder, Walloper, Barrager, or Spellslinger
Affiliation: Moblin Maze Mongers
Occupation: {{{occupation}}}
Status: {{{status}}}
Relatives: {{{relatives}}}
{{Infobox NPC
| image = Hasim.png
| name = Hasim
| gender = Male
| bestiary = Hume
| occupation = Scroll Merchant
| job = 
| affiliation = Jeuno
}}
Hasim.png
Hasim
Gender: Male
Race: [[:Category:{{{race}}} NPCs|{{{race}}}]]
Bestiary: Hume
Job:
Affiliation: Jeuno
Occupation: Scroll Merchant
Status: {{{status}}}
Relatives: {{{relatives}}}