Template:Infobox character: Difference between revisions

From feywild

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" style="width:300px; font-size:90%; border:1px solid #aaa; background-color:#f9f9f9; padding:5px;"
<div style="border:1px solid #AAA; background-color:#F9F9F9; width:300px; padding:8px; font-size:90%; line-height:1.4em;">
{{#if:{{{name|}}}|
 
|-
<!-- Name (centered and bold) -->
| colspan="2" style="text-align:center; font-weight:bold; font-size:110%;" | {{{name}}}
<div style="text-align:center; font-size:120%; font-weight:bold; margin-bottom:6px;">
}}
  {{{name|Unknown}}}
{{#if:{{{image|}}}|
</div>
|-
 
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|250px]]
<!-- Image and Caption -->
}}
<div style="text-align:center; margin-bottom:8px;">
{{#if:{{{caption|}}}|
  {{#if:{{{image|}}}|[[File:{{{image}}}|250px|center]]}}
|-
  <div style="font-size:85%; color:#555;">{{{caption|}}}</div>
| colspan="2" style="text-align:center; font-style:italic;" | {{{caption}}}
</div>
}}
 
{{#if:{{{aliases|}}}|
<!-- Data Fields -->
|-
<table style="width:100%; border-collapse:collapse; font-size:95%;">
| '''Aliases:''' || {{{aliases}}}
  <tr><td style="vertical-align:top; width:35%; font-weight:bold;">Aliases</td><td>{{{aliases|}}}</td></tr>
}}
  <tr><td style="vertical-align:top; font-weight:bold;">Loyalties</td><td>{{{loyalties|}}}</td></tr>
{{#if:{{{loyalties|}}}|
  <tr><td style="vertical-align:top; font-weight:bold;">Title</td><td>{{{title|}}}</td></tr>
|-
  <tr><td style="vertical-align:top; font-weight:bold;">Role</td><td>{{{role|}}}</td></tr>
| '''Loyalties / Faction:''' || {{{loyalties}}}
  <tr><td style="vertical-align:top; font-weight:bold;">Birthplace</td><td>{{{birthplace|}}}</td></tr>
}}
  <tr><td style="vertical-align:top; font-weight:bold;">Birthdate</td><td>{{{birthdate|}}}</td></tr>
{{#if:{{{title|}}}|
  <tr><td style="vertical-align:top; font-weight:bold;">Status</td><td>{{{status|}}}</td></tr>
|-
  <tr><td style="vertical-align:top; font-weight:bold;">Species</td><td>{{{species|}}}</td></tr>
| '''Title / Rank:''' || {{{title}}}
  <tr><td style="vertical-align:top; font-weight:bold;">Gender</td><td>{{{gender|}}}</td></tr>
}}
  <tr><td style="vertical-align:top; font-weight:bold;">Orientation</td><td>{{{orientation|}}}</td></tr>
{{#if:{{{role|}}}|
  <tr><td style="vertical-align:top; font-weight:bold;">Partners</td><td>{{{partners|}}}</td></tr>
|-
  <tr><td style="vertical-align:top; font-weight:bold;">Education</td><td>{{{education|}}}</td></tr>
| '''Role:''' || {{{role}}}
</table>
}}
 
{{#if:{{{birthplace|}}}|
</div>
|-
| '''Birth Place:''' || {{{birthplace}}}
}}
{{#if:{{{birthdate|}}}|
|-
| '''Birth Date:''' || {{{birthdate}}}
}}
{{#if:{{{status|}}}|
|-
| '''Status:''' || {{{status}}}
}}
{{#if:{{{species|}}}|
|-
| '''Species:''' || {{{species}}}
}}
{{#if:{{{gender|}}}|
|-
| '''Gender:''' || {{{gender}}}
}}
{{#if:{{{orientation|}}}|
|-
| '''Orientation:''' || {{{orientation}}}
}}
{{#if:{{{partners|}}}|
|-
| '''Partner(s):''' || {{{partners}}}
}}
{{#if:{{{education|}}}|
|-
| '''Education:''' || {{{education}}}
}}
|}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
This is a character infobox template. Use it by adding:
{{TemplateData|
description = "Displays a neatly formatted infobox for characters, with name centered, image and caption below, and remaining data fields listed with labels."
params = {
  name = {
    label = "Name",
    description = "Full name of the character.",
    type = "string",
    required = true
  },
  image = {
    label = "Image",
    description = "Image file name (omit File: prefix).",
    type = "string",
    required = false
  },
  caption = {
    label = "Caption",
    description = "Short caption or quote under the image.",
    type = "string",
    required = false
  },
  aliases = {
    label = "Aliases",
    description = "Alternate names or titles the character is known by.",
    type = "string",
    required = false
  },
  loyalties = {
    label = "Loyalties",
    description = "Organizations, families, or causes the character is loyal to.",
    type = "string",
    required = false
  },
  title = {
    label = "Title",
    description = "Formal or informal title(s).",
    type = "string",
    required = false
  },
  role = {
    label = "Role",
    description = "Occupation, profession, or narrative role.",
    type = "string",
    required = false
  },
  birthplace = {
    label = "Birthplace",
    description = "Place of birth or origin.",
    type = "string",
    required = false
  },
  birthdate = {
    label = "Birthdate",
    description = "Character's date of birth.",
    type = "string",
    required = false
  },
  status = {
    label = "Status",
    description = "Current status (Alive, Deceased, Unknown, etc.).",
    type = "string",
    required = false
  },
  species = {
    label = "Species",
    description = "Race or species of the character.",
    type = "string",
    required = false
  },
  gender = {
    label = "Gender",
    description = "Gender identity of the character.",
    type = "string",
    required = false
  },
  orientation = {
    label = "Orientation",
    description = "Sexual orientation.",
    type = "string",
    required = false
  },
  partners = {
    label = "Partners",
    description = "Romantic or bonded partners.",
    type = "string",
    required = false
  },
  education = {
    label = "Education",
    description = "Training, schooling, or institutions attended.",
    type = "string",
    required = false
  }
}
}}
 
== Usage ==
Place this template at the top of a character page:
<pre>
<pre>
{{Infobox character
{{Infobox character
| name           =  
| name       = Example Name
| image         =  
| image       = Example.jpg
| caption       =  
| caption     = Example Caption
| aliases       =  
| aliases     = The Shadow
| loyalties     =  
| loyalties   = House Vaeari
| title         =  
| title       = Lord
| role           =  
| role       = Enchanter
| birthplace     =  
| birthplace = Ilina
| birthdate     =  
| birthdate   = 14th Sun of Summer, 1492
| status         =  
| status     = Alive
| species       =  
| species     = Ayldarzi
| gender         =  
| gender     = Male
| orientation   =  
| orientation = Pansexual
| partners       =  
| partners   = Vael
| education     =  
| education   = Arcane College of Ilina
}}
}}
</pre>
</pre>
<templatedata>
{
  "description": "Infobox for character profiles, showing key biographical and narrative details.",
  "params": {
    "name": {
      "label": "Name",
      "description": "Full name of the character",
      "type": "string",
      "required": true
    },
    "image": {
      "label": "Image",
      "description": "Filename of the character's image (e.g. LucienPortrait.jpg)",
      "type": "string"
    },
    "caption": {
      "label": "Caption",
      "description": "Short caption under the image",
      "type": "string"
    },
    "aliases": {
      "label": "Aliases",
      "description": "Other names or titles the character is known by",
      "type": "string"
    },
    "loyalties": {
      "label": "Loyalties / Faction",
      "description": "Groups, nations, or causes the character is affiliated with",
      "type": "string"
    },
    "title": {
      "label": "Title / Rank",
      "description": "Formal title or rank held by the character",
      "type": "string"
    },
    "role": {
      "label": "Role",
      "description": "Narrative or functional role of the character",
      "type": "string"
    },
    "birthplace": {
      "label": "Birth Place",
      "description": "Place of birth",
      "type": "string"
    },
    "birthdate": {
      "label": "Birth Date",
      "description": "Date of birth",
      "type": "string"
    },
    "status": {
      "label": "Status",
      "description": "Current status (alive, missing, deceased, etc.)",
      "type": "string"
    },
    "species": {
      "label": "Species",
      "description": "Biological or mythological classification",
      "type": "string"
    },
    "gender": {
      "label": "Gender",
      "description": "Gender identity",
      "type": "string"
    },
    "orientation": {
      "label": "Orientation",
      "description": "Sexual or romantic orientation",
      "type": "string"
    },
    "partners": {
      "label": "Partner(s)",
      "description": "Known romantic or marital partners",
      "type": "string"
    },
    "education": {
      "label": "Education",
      "description": "Training, schooling, or formative experience",
      "type": "string"
    }
  }
}
</templatedata>
</noinclude>
</noinclude>

Revision as of 13:10, 30 October 2025


Template:TemplateData

Usage

Place this template at the top of a character page:

{{Infobox character
| name        = Example Name
| image       = Example.jpg
| caption     = Example Caption
| aliases     = The Shadow
| loyalties   = House Vaeari
| title       = Lord
| role        = Enchanter
| birthplace  = Ilina
| birthdate   = 14th Sun of Summer, 1492
| status      = Alive
| species     = Ayldarzi
| gender      = Male
| orientation = Pansexual
| partners    = Vael
| education   = Arcane College of Ilina
}}