Jump to content

Template:Infobox Player: Difference between revisions

From VeraciaWiki
No edit summary
No edit summary
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><pre>{{Infobox_Player
  | primary_color =
  | secondary_color =
  | name =
  | race =
  | class1 =
  | level1 =
  | class2 =
  | level2 =
  | class3 =
  | level3 =
  | image =
  | image_quote =
  | status =
  | other_names =
  | titles =
  | occupation =
  | location =
  | affiliations =
  | languages =
  | birth =
  | death =
  | notable_for =
  | house =
  | parentage =
  | spouse =
  | children =
  | gender =
  | height =
  | build =
  | skin_color =
  | hair =
  | eye_color =
  | other_physical_features =
  | equipment =
  | weaponry =
  | magic =
  | str =
  | dex =
  | con =
  | int =
  | wis =
  | cha =
  }}</pre></noinclude><includeonly>
<templatestyles src="Infobox Player/styles.css" />
<templatestyles src="Infobox Player/styles.css" />
<style>
  .infobox-primary {
    background: {{{primary_color|var(--primary-color, #bbb)}}}; /* Default to #bbb if not provided */
  }
  .infobox-secondary {
    background: {{{secondary_color|var(--secondary-color, #ddd)}}}; /* Default to #ddd if not provided */
  }
</style>
<table class="infobox">
<table class="infobox">
   <tr class="infobox-primary">
   <tr class="infobox-primary" style="background-color: {{{primary_color|#bbb}}}">
     <th colspan="2" class="infobox-title">{{{title|{{PAGENAME}}}}}</th>
     <th colspan="6" class="infobox-title">{{{name|{{PAGENAME}}}}}</th>
   </tr>
   </tr>
<tr class="infobox-race-class">
  <tr class="infobox-race-class" style="background-color: {{{primary_color|#bbb}}}">
  <td colspan="2" style="padding-top:0;vertical-align:top;">{{{race}}} {{#if: {{{class1|}}} | {{{class1}}} }}{{#if: {{{class2|}}} | / {{{class2}}}}}{{#if: {{{class3|}}} | /  {{{class3}}} }}</td>
    <td colspan="6" style="padding-top:0;vertical-align:top;">{{{race}}} {{#if: {{{class1|}}} | {{{class1}}} }}{{#if: {{{class2|}}} | / {{{class2}}}}}{{#if: {{{class3|}}} | /  {{{class3}}} }}</td>
</tr>
  <tr class="infobox-primary">
    <td colspan="2" class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|230px|center]]</td>
   </tr>
   </tr>
   <tr>
   <tr class="infobox-primary" style="background-color: {{{primary_color|#bbb}}}">
     <td class="infobox-image-quote" colspan="2">{{{image_quote}}}</td>
     <td colspan="6" class="infobox-image">{{Border|[[File:{{PAGENAME:{{{image}}}}}|center|frameless|upright=0.9]]|color=black}}</td>
   </tr>
   </tr>
   <tr class="infobox-primary">
   <tr style="background-color: {{{primary_color|#bbb}}}">
     <td colspan="2" style:"padding-bottom: 20px">
     <td class="infobox-image-quote" colspan="6">{{{image_quote}}}</td>
   </tr>
   </tr>
   <tr class="infobox-primary-end">
   <tr class="infobox-primary" style="background-color: {{{primary_color|#bbb}}}">
     <th colspan="2">Biographical Information</th>
     <td colspan="6" style:"padding-bottom: 20px"></td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
   <tr class="infobox-primary-end" style="background-color: {{{primary_color|#bbb}}}">
     <th>Status</th>
     <th colspan="6">Biographical Information</th>
    <td>{{{status}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  {{#if: {{{status|}}} |
     <th>Other names</th>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <td>{{{other_names}}}</td>
     <th colspan="2">Status</th>
     <td colspan="4">{{{status}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Title</th>
  {{#if: {{{other_names|}}} |
     <td>{{{titles}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Other names</th>
     <td colspan="4">{{{other_names}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Occupation</th>
  {{#if: {{{titles|}}} |
     <td>{{{occupation}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Title</th>
     <td colspan="4">{{{titles}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Affiliation</th>
  {{#if: {{{occupation|}}} |
     <td>{{{affiliations}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Occupation</th>
     <td colspan="4">{{{occupation}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Language</th>
  {{#if: {{{location|}}} |
     <td>{{{languages}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Location</th>
     <td colspan="4">{{{location}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Birth</th>
  {{#if: {{{affiliations|}}} |
     <td>{{{birth}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Affiliation</th>
     <td colspan="4">{{{affiliations}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Death</th>
  {{#if: {{{languages|}}} |
     <td>{{{death}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Language</th>
     <td colspan="4">{{{languages}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary-end">
  }}
     <th>Notable for</th>
  {{#if: {{{birth|}}} |
     <td>{{{notable_for}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Birth</th>
     <td colspan="4">{{{birth}}}</td>
   </tr>
   </tr>
   <tr class="infobox-primary-end">
  }}
     <th colspan="2">Family</th>
  {{#if: {{{death|}}} |
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Death</th>
    <td colspan="4">{{{death}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>House</th>
  {{#if: {{{notable_for|}}} |
     <td>{{{house}}}</td>
   <tr class="infobox-secondary-end" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Notable for</th>
     <td colspan="4">{{{notable_for}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Parentage</th>
   <tr class="infobox-primary-end" style="background-color: {{{primary_color|#bbb}}}">
    <td>{{{parentage}}}</td>
     <th colspan="6">Family</th>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  {{#if: {{{house|}}} |
     <th>Spouse</th>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <td>{{{spouse}}}</td>
     <th colspan="2">House</th>
     <td colspan="4">{{{house}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary-end">
  }}
     <th>Children</th>
  {{#if: {{{parentage|}}} |
     <td>{{{children}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Parentage</th>
     <td colspan="4">{{{parentage}}}</td>
   </tr>
   </tr>
   <tr class="infobox-primary-end">
  }}
     <th colspan="2">Physical Description</th>
  {{#if: {{{spouse|}}} |
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Spouse</th>
    <td colspan="4">{{{spouse}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Gender</th>
  {{#if: {{{children|}}} |
     <td>{{{gender}}}</td>
   <tr class="infobox-secondary-end" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Children</th>
     <td colspan="4">{{{children}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Height</th>
   <tr class="infobox-primary-end" style="background-color: {{{primary_color|#bbb}}}">
    <td>{{{height}}}</td>
     <th colspan="6">Physical Description</th>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  {{#if: {{{gender|}}} |
     <th>Build</th>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <td>{{{build}}}</td>
     <th colspan="2">Gender</th>
     <td colspan="4">{{{gender}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Hair color</th>
  {{#if: {{{height|}}} |
     <td>{{{hair_color}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Height</th>
     <td colspan="4">{{{height}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Eye color</th>
  {{#if: {{{build|}}} |
     <td>{{{eye_color}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Build</th>
     <td colspan="4">{{{build}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Equipment</th>
  {{#if: {{{skin_color|}}} |
     <td>{{{equipment}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Skin color</th>
     <td colspan="4">{{{skin_color}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary">
  }}
     <th>Weaponry</th>
  {{#if: {{{hair|}}} |
     <td>{{{weaponry}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Hair</th>
     <td colspan="4">{{{hair}}}</td>
   </tr>
   </tr>
   <tr class="infobox-secondary-end">
  }}
     <th>Magic</th>
  {{#if: {{{eye_color|}}} |
     <td>{{{magic}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Eye color</th>
     <td colspan="4">{{{eye_color}}}</td>
   </tr>
   </tr>
<tr class="infobox-primary">
   }}
   <th colspan="2">Level {{#if: {{{level1|}}} | {{{level1}}} {{{class1}}} | }}{{#if: {{{level2|}}} | / {{{level2}}} {{{class2}}} | }}{{#if: {{{level3|}}} | / {{{level3}}} {{{class3}}} | }}</th>
  {{#if: {{{other_physical_features|}}} |  
</tr>
  <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
 
    <th colspan="2">Other<br>features</th>
</tr>
     <td colspan="4">{{{other_physical_features}}}</td>
</table>
<div class="clear"></div>
<table class="infobox" style="margin-top: -0.5em">
  <tr class="infobox-primary">
    <th>STR</th>
     <th>DEX</th>
    <th>CON</th>
    <th>INT</th>
    <th>WIS</th>
    <th>CHA</th>
   </tr>
   </tr>
   <tr class="infobox-primary">
  }}
     <td style="text-align: center;">{{{str}}}</td>
  {{#if: {{{equipment|}}} |
     <td style="text-align: center;">{{{dex}}}</td>
   <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
     <td style="text-align: center;">{{{con}}}</td>
    <th colspan="2">Equipment</th>
     <td style="text-align: center;">{{{int}}}</td>
     <td colspan="4">{{{equipment}}}</td>
     <td style="text-align: center;">{{{wis}}}</td>
  </tr>
     <td style="text-align: center;">{{{cha}}}</td>
  }}
  {{#if: {{{weaponry|}}} |
  <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
    <th colspan="2">Weaponry</th>
    <td colspan="4">{{{weaponry}}}</td>
  </tr>
  }}
  {{#if: {{{magic|}}} |
  <tr class="infobox-secondary-end" style="background-color: {{{secondary_color|#ddd}}}">
     <th colspan="2">Magic</th>
    <td colspan="4">{{{magic}}}</td>
  </tr>
  }}
  <tr class="infobox-primary-end" style="background-color: {{{primary_color|#bbb}}}">
    <th colspan="6">Level {{#if: {{{level1|}}} | {{{level1}}} {{{class1}}} | }}{{#if: {{{level2|}}} | / {{{level2}}} {{{class2}}} | }}{{#if: {{{level3|}}} | / {{{level3}}} {{{class3}}} | }}</th>
  </tr>
  <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
    <th class="infobox-attribute" style="background-color: {{{primary_color|#bbb}}}>STR</th>
    <th class="infobox-attribute" style="background-color: {{{primary_color|#bbb}}}>DEX</th>
    <th class="infobox-attribute" style="background-color: {{{primary_color|#bbb}}}>CON</th>
    <th class="infobox-attribute" style="background-color: {{{primary_color|#bbb}}}>INT</th>
    <th class="infobox-attribute" style="background-color: {{{primary_color|#bbb}}}>WIS</th>
    <th class="infobox-attribute" style="background-color: {{{primary_color|#bbb}}}>CHA</th>
      </tr>
      <tr class="infobox-secondary" style="background-color: {{{secondary_color|#ddd}}}">
    <th class="infobox-attribute-value">{{{str}}}</td>
    <th class="infobox-attribute-value">{{{dex}}}</td>
     <th class="infobox-attribute-value">{{{con}}}</td>
     <th class="infobox-attribute-value">{{{int}}}</td>
     <th class="infobox-attribute-value">{{{wis}}}</td>
     <th class="infobox-attribute-value">{{{cha}}}</td>
   </tr>
   </tr>
</table>
</table>

Latest revision as of 09:01, 10 April 2024

{{Infobox_Player
  | primary_color = 
  | secondary_color = 
  | name = 
  | race =
  | class1 =
  | level1 = 
  | class2 = 
  | level2 = 
  | class3 = 
  | level3 = 
  | image = 
  | image_quote = 
  | status = 
  | other_names = 
  | titles = 
  | occupation = 
  | location = 
  | affiliations = 
  | languages = 
  | birth = 
  | death = 
  | notable_for = 
  | house = 
  | parentage = 
  | spouse = 
  | children = 
  | gender = 
  | height = 
  | build = 
  | skin_color = 
  | hair = 
  | eye_color = 
  | other_physical_features =
  | equipment = 
  | weaponry = 
  | magic = 
  | str =
  | dex =
  | con =
  | int =
  | wis =
  | cha =
  }}