Template:Infobox Character: Difference between revisions

From Drawing Verse
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<div class="mw-parser-output" style="float: right; clear: right; width: 300px; margin: 0 0 10px 20px; background: #f8f9fa; border: 1px solid #a2a9b1; padding: 5px; font-family: sans-serif; font-size: 88%; line-height: 1.5; box-sizing: border-box;">
<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;">
  <div style="background: #1e90ff; color: white; text-align: center; font-weight: bold; font-size: 125%; padding: 4px; margin-bottom: 5px;">{{{name|{{PAGENAME}}}}}</div>
    
    
   {{#if:{{{image|}}}|<div style="text-align: center; margin-bottom: 8px;">[[File:{{{image}}}|280px|center]]</div>}}
   <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>
    
    
   <table style="width: 100%; border-collapse: collapse;">
  {{#if:{{{image|}}}|
     {{#if:{{{species|}}}|<tr style="border-bottom: 1px solid #eaecf0;"><td style="font-weight: bold; padding: 4px; width: 40%;">Species:</td><td style="padding: 4px;">{{{species}}}</td></tr>}}
    <div style="background: #ffffff; padding: 10px; text-align: center; border-bottom: 1px solid #eaecf0;">
     {{#if:{{{faction|}}}|<tr style="border-bottom: 1px solid #eaecf0;"><td style="font-weight: bold; padding: 4px;">Faction:</td><td style="padding: 4px;">{{{faction}}}</td></tr>}}
      [[File:{{{image}}}|300x400px|center|thumbnail|link=]]
     {{#if:{{{status|}}}|<tr style="border-bottom: 1px solid #eaecf0;"><td style="font-weight: bold; padding: 4px;">Status:</td><td style="padding: 4px;">{{{status}}}</td></tr>}}
    </div>
     {{#if:{{{abilities|}}}|<tr><td style="font-weight: bold; padding: 4px;">Abilities:</td><td style="padding: 4px;">{{{abilities}}}</td></tr>}}
  }}
 
   <table style="width: 100%; border-collapse: collapse; margin: 5px 0;">
     {{#if:{{{species|}}}|
      <tr style="border-bottom: 1px solid #eaecf0;">
        <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>
      </tr>
    }}
     {{#if:{{{faction|}}}|
      <tr style="border-bottom: 1px solid #eaecf0;">
        <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>
      </tr>
    }}
     {{#if:{{{status|}}}|
      <tr style="border-bottom: 1px solid #eaecf0;">
        <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;">
          <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>
        </td>
      </tr>
    }}
     {{#if:{{{abilities|}}}|
      <tr>
        <td style="font-weight: 600; color: #54595d; padding: 8px 12px; vertical-align: top;">Abilities</td>
        <td style="padding: 8px 12px; color: #202122; vertical-align: top;">{{{abilities}}}</td>
      </tr>
    }}
   </table>
   </table>
</div><noinclude>
</div><noinclude>

Revision as of 21:21, 7 June 2026

Infobox Character


TemplateData Documentation

This is the documentation for the VisualEditor form interface.

An infobox summarizing key details for a character in the universe.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Character Namename

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

Stringsuggested
Image Fileimage

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

Filesuggested
Speciesspecies

The character's race or biological species.

Stringsuggested
Faction / Alignmentfaction

The group, military unit, hivemind, or side they fight for.

Stringsuggested
Current Statusstatus

Alive, Deceased, Missing, Captured, Unknown, etc.

Stringsuggested
Powers / Abilitiesabilities

Notable skills or unique powers.

Stringoptional