Template:Infobox Character: Difference between revisions

From Drawing Verse
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="portable-infobox" style="float: right; clear: right; width: 320px; margin: 0 0 15px 20px; background: #f8f9fa; border: 1px solid #bcc2cb; border-radius: 8px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; box-shadow: 0 2px 8px rgba(0,0,0,0.06); box-sizing: border-box;">
<table class="infobox biography vcard" style="float: right; clear: right; width: 22em; border: 1px solid #a2a9b1; border-spacing: 3px; background-color: #f8f9fa; color: #202122; margin: 0.5em 0 0.5em 1em; padding: 0.2em; font-family: sans-serif; font-size: 88%; line-height: 1.5em; box-sizing: border-box;">
    
    
   <div style="background: #1e90ff; color: white; text-align: center; font-weight: 700; font-size: 18px; padding: 10px 15px; letter-spacing: 0.5px;">{{{name|{{PAGENAME}}}}}</div>
   <tr>
    <th colspan="2" class="fn" style="font-size: 125%; font-weight: bold; text-align: center; background-color: #f2f2f2; border: 1px solid #a2a9b1; padding: 0.2em 0.4em;">{{{name|{{PAGENAME}}}}}</th>
  </tr>
 
  {{#if:{{{alias|}}}|
    <tr>
      <td colspan="2" style="text-align: center; font-style: italic; color: #54595d; padding: 0.1em 0 0.4em 0; font-size: 95%;">
        Alias: {{{alias}}}
      </td>
    </tr>
  }}
    
    
   {{#if:{{{image|}}}|
   {{#if:{{{image|}}}|
     <div style="background: #ffffff; padding: 10px; text-align: center; border-bottom: 1px solid #eaecf0;">
     <tr>
      [[File:{{{image}}}|300x400px|center|thumbnail|link=]]
      <td colspan="2" style="text-align: center; padding: 0.2em 0;">
     </div>
        [[File:{{{image}}}|220px|center]]
      </td>
     </tr>
   }}
   }}
    
    
   <table style="width: 100%; border-collapse: collapse; margin: 5px 0;">
   <tr>
    {{#if:{{{species|}}}|
    <th colspan="2" style="text-align: center; background-color: #f2f2f2; border: 1px solid #a2a9b1; font-weight: bold; font-size: 95%; padding: 0.1em 0;">Biographical information</th>
       <tr style="border-bottom: 1px solid #eaecf0;">
  </tr>
        <td style="font-weight: 600; color: #54595d; padding: 8px 12px; width: 35%; vertical-align: top;">Species</td>
 
        <td style="padding: 8px 12px; color: #202122; vertical-align: top;">{{{species}}}</td>
  {{#if:{{{species|}}}|
      </tr>
    <tr>
    }}
       <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em; width: 35%;">Species</th>
    {{#if:{{{faction|}}}|
      <td style="padding: 0.1em 0.4em;">{{{species}}}</td>
       <tr style="border-bottom: 1px solid #eaecf0;">
    </tr>
        <td style="font-weight: 600; color: #54595d; padding: 8px 12px; vertical-align: top;">Faction</td>
  }}
        <td style="padding: 8px 12px; color: #202122; vertical-align: top;">{{{faction}}}</td>
  {{#if:{{{gender|}}}|
      </tr>
    <tr>
    }}
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em;">Gender</th>
    {{#if:{{{status|}}}|
      <td style="padding: 0.1em 0.4em;">{{{gender}}}</td>
       <tr style="border-bottom: 1px solid #eaecf0;">
    </tr>
        <td style="font-weight: 600; color: #54595d; padding: 8px 12px; vertical-align: top;">Status</td>
  }}
        <td style="padding: 8px 12px; color: #202122; vertical-align: top;">
  {{#if:{{{born|}}}|
          <span style="display: inline-block; padding: 2px 8px; border-radius: 4px; font-weight: bold; font-size: 12px; background: {{#switch:{{lower:{{{status}}}}}|alive=#e1f5fe|deceased=#ffebee|#f5f5f5}}; color: {{#switch:{{lower:{{{status}}}}}|alive=#0288d1|deceased=#c62828|#616161}};">{{{status}}}</span>
    <tr>
        </td>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em;">Born</th>
      </tr>
      <td style="padding: 0.1em 0.4em;">{{{born}}}</td>
    }}
    </tr>
    {{#if:{{{abilities|}}}|
  }}
      <tr>
  {{#if:{{{died|}}}|
        <td style="font-weight: 600; color: #54595d; padding: 8px 12px; vertical-align: top;">Abilities</td>
    <tr>
        <td style="padding: 8px 12px; color: #202122; vertical-align: top;">{{{abilities}}}</td>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em;">Died</th>
      </tr>
      <td style="padding: 0.1em 0.4em;">{{{died}}}</td>
    }}
    </tr>
  </table>
  }}
</div><noinclude>
  {{#if:{{{origin_planet|}}}|
    <tr>
       <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em;">Origin Planet</th>
      <td style="padding: 0.1em 0.4em;">{{{origin_planet}}}</td>
    </tr>
  }}
  {{#if:{{{home_world|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em;">Home World</th>
      <td style="padding: 0.1em 0.4em;">{{{home_world}}}</td>
    </tr>
  }}
  {{#if:{{{status|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em;">Status</th>
      <td style="padding: 0.1em 0.4em;">{{{status}}}</td>
    </tr>
  }}
 
  {{#if:{{{faction|}}}{{{affiliation|}}}{{{position|}}}{{{occupation|}}}|
    <tr>
       <th colspan="2" style="text-align: center; background-color: #f2f2f2; border: 1px solid #a2a9b1; font-weight: bold; font-size: 95%; padding: 0.1em 0;">Affiliation & Roles</th>
    </tr>
  }}
  {{#if:{{{faction|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em;">Faction</th>
      <td style="padding: 0.1em 0.4em;">{{{faction}}}</td>
    </tr>
  }}
  {{#if:{{{affiliation|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em; vertical-align: top;">Affiliation</th>
      <td style="padding: 0.1em 0.4em; vertical-align: top;">{{{affiliation}}}</td>
    </tr>
  }}
  {{#if:{{{position|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em; vertical-align: top;">Position of Power</th>
      <td style="padding: 0.1em 0.4em; vertical-align: top;">{{{position}}}</td>
    </tr>
  }}
  {{#if:{{{occupation|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em; vertical-align: top;">Occupation</th>
      <td style="padding: 0.1em 0.4em; vertical-align: top;">{{{occupation}}}</td>
    </tr>
  }}
 
  {{#if:{{{parents|}}}{{{relatives|}}}{{{abilities|}}}|
    <tr>
      <th colspan="2" style="text-align: center; background-color: #f2f2f2; border: 1px solid #a2a9b1; font-weight: bold; font-size: 95%; padding: 0.1em 0;">Family & Traits</th>
    </tr>
  }}
  {{#if:{{{parents|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em; vertical-align: top;">Parents</th>
      <td style="padding: 0.1em 0.4em; vertical-align: top;">{{{parents}}}</td>
    </tr>
  }}
  {{#if:{{{relatives|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em; vertical-align: top;">Relatives</th>
      <td style="padding: 0.1em 0.4em; vertical-align: top;">{{{relatives}}}</td>
    </tr>
  }}
  {{#if:{{{abilities|}}}|
    <tr>
      <th scope="row" style="text-align: left; white-space: nowrap; font-weight: bold; padding: 0.1em 0.4em; vertical-align: top;">Abilities</th>
      <td style="padding: 0.1em 0.4em; vertical-align: top;">{{{abilities}}}</td>
    </tr>
  }}
</table><noinclude>


== TemplateData Documentation ==
== TemplateData Documentation ==
Line 44: Line 128:
<templatedata>
<templatedata>
{
{
"description": "An infobox summarizing key details for a character in the universe.",
"description": "A comprehensive infobox summarizing key details for a character.",
"format": "block",
"format": "block",
"params": {
"params": {
"name": {
"name": {
"label": "Character Name",
"label": "Character Name",
"description": "The name of the character. Defaults to the page title.",
"description": "The main name of the character. Defaults to the page title.",
"type": "string",
"suggested": true
},
"alias": {
"label": "Alias / Codenames",
"description": "Other names, titles, monikers, or pseudonyms the character goes by.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
Line 55: Line 145:
"image": {
"image": {
"label": "Image File",
"label": "Image File",
"description": "Just the filename, e.g., CharacterPortrait.png (do not type 'File:')",
"description": "Just the filename, e.g., Portrait.png (do not type 'File:')",
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"suggested": true
Line 61: Line 151:
"species": {
"species": {
"label": "Species",
"label": "Species",
"description": "The character's race or biological species.",
"description": "The character's race, alien species, or biological type.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"faction": {
"gender": {
"label": "Faction / Alignment",
"label": "Gender",
"description": "The group, military unit, hivemind, or side they fight for.",
"description": "The character's gender (e.g., Male, Female, None).",
"type": "string"
},
"born": {
"label": "Date of Birth / Creation",
"description": "When the character was born.",
"type": "string"
},
"died": {
"label": "Date of Death",
"description": "When the character died (if applicable).",
"type": "string"
},
"origin_planet": {
"label": "Origin Planet",
"description": "The home planet, dimension, or realm where the character was born.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
"home_world": {
"label": "Current Home World",
"description": "Where the character currently lives or operates from if different from their origin planet.",
"type": "string"
},
},
"status": {
"status": {
"label": "Current Status",
"label": "Current Status",
"description": "Alive, Deceased, Missing, Captured, Unknown, etc.",
"description": "Alive, Deceased, Missing, Sealed, Unknown, etc.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
"faction": {
"label": "Primary Faction",
"description": "The main group, nation, or side they belong to.",
"type": "string",
"suggested": true
},
"affiliation": {
"label": "Other Affiliations",
"description": "Secondary groups, squads, guilds, or minor alliances.",
"type": "string"
},
"position": {
"label": "Position of Power",
"description": "Official leadership titles held (e.g., Fleet Admiral, Hive Queen, High Priest).",
"type": "string"
},
"occupation": {
"label": "Occupation",
"description": "Their job, trade, or role (e.g., Engineer, Scout, Merchant, Assassin).",
"type": "string"
},
"parents": {
"label": "Parents / Creators",
"description": "The biological parents, parent entities, or mechanical creators.",
"type": "string"
},
"relatives": {
"label": "Relatives",
"description": "Siblings, children, notable family members, or genetic clones.",
"type": "string"
},
},
"abilities": {
"abilities": {
"label": "Powers / Abilities",
"label": "Powers / Abilities",
"description": "Notable skills or unique powers.",
"description": "Notable physical, weapons, technological, or biological skills.",
"type": "string"
"type": "string"
}
}

Latest revision as of 15:17, 11 June 2026

Infobox Character
Biographical information

TemplateData Documentation

This is the documentation for the VisualEditor form interface.

A comprehensive infobox summarizing key details for a character.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Character Namename

The main name of the character. Defaults to the page title.

Stringsuggested
Alias / Codenamesalias

Other names, titles, monikers, or pseudonyms the character goes by.

Stringsuggested
Image Fileimage

Just the filename, e.g., Portrait.png (do not type 'File:')

Filesuggested
Speciesspecies

The character's race, alien species, or biological type.

Stringsuggested
Gendergender

The character's gender (e.g., Male, Female, None).

Stringoptional
Date of Birth / Creationborn

When the character was born.

Stringoptional
Date of Deathdied

When the character died (if applicable).

Stringoptional
Origin Planetorigin_planet

The home planet, dimension, or realm where the character was born.

Stringsuggested
Current Home Worldhome_world

Where the character currently lives or operates from if different from their origin planet.

Stringoptional
Current Statusstatus

Alive, Deceased, Missing, Sealed, Unknown, etc.

Stringsuggested
Primary Factionfaction

The main group, nation, or side they belong to.

Stringsuggested
Other Affiliationsaffiliation

Secondary groups, squads, guilds, or minor alliances.

Stringoptional
Position of Powerposition

Official leadership titles held (e.g., Fleet Admiral, Hive Queen, High Priest).

Stringoptional
Occupationoccupation

Their job, trade, or role (e.g., Engineer, Scout, Merchant, Assassin).

Stringoptional
Parents / Creatorsparents

The biological parents, parent entities, or mechanical creators.

Stringoptional
Relativesrelatives

Siblings, children, notable family members, or genetic clones.

Stringoptional
Powers / Abilitiesabilities

Notable physical, weapons, technological, or biological skills.

Stringoptional