Template:Infobox Character: Difference between revisions

The Emma M. Lion Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<div style="border:1px solid #ccc; background-color:#f9f9f9; width:300px; padding:10px; float:right; margin-left:10px;">
{{Documentation}}
  <strong>{{{name}}}</strong>
</noinclude>
  <br><br>
{{Infobox
  {{#if: {{{image}}} | <img src="{{{image}}}" alt="{{{name}}}" style="width:100%; max-width:250px;"> | }}
| title            = {{PAGENAME}}
  <em>{{{caption}}}</em>
| image            =  
  <br><br>
| image_size        =
  <table style="width:100%; font-size:90%; border:none;">
| caption           =  
    {{#if: {{{full_name}}} | <tr><td><strong>Full Name</strong></td><td>{{{full_name}}}</td></tr> | }}
| header1          =
    {{#if: {{{alias}}} | <tr><td><strong>Alias</strong></td><td>{{{alias}}}</td></tr> | }}
| label1            =
    {{#if: {{{species}}} | <tr><td><strong>Species</strong></td><td>{{{species}}}</td></tr> | }}
| data1            =
    {{#if: {{{gender}}} | <tr><td><strong>Gender</strong></td><td>{{{gender}}}</td></tr> | }}
| header2          =
    {{#if: {{{occupation}}} | <tr><td><strong>Occupation</strong></td><td>{{{occupation}}}</td></tr> | }}
| label2            =
   
| data2            =
    <!-- Birth and Age Display -->
| header3          =
    {{#if: {{{birth_date}}} |  
| label3            =
      <tr><td><strong>Birth Date</strong></td>
| data3            =
      <td>
| header4          =
        {{{birth_date}}}
| label4            =
        {{#if: {{{death_date}}} | - {{{death_date}}} | }}
| data4            =
       
| header5          =
        <!-- Calculate Age -->
| label5            =
        {{#ifeq: {{#time: Y|{{{birth_date}}}}} | {{#time: Y|1884-8-1}} | (Age: {{#expr: {{#time: Y}} - {{#time: Y|{{{birth_date}}}}}}}) | }}
| data5            =
      </td></tr>
| header6          =
    | }}
| label6            =
   
| data6            =
    {{#if: {{{status}}} | <tr><td><strong>Status</strong></td><td>{{{status}}}</td></tr> | }}
| footer           =
    {{#if: {{{related_to}}} | <tr><td><strong>Related To</strong></td><td>{{{related_to}}}</td></tr> | }}
}}
    {{#if: {{{first_appearance}}} | <br><strong>First Appearance</strong>: {{{first_appearance}}} | }}
  </table>
  {{#if: {{{footer}}} | <br><br><em>{{{footer}}}</em> | }}
</div>

Revision as of 01:24, 24 December 2024

 {{{name}}}
 

<img src="{{{image}}}" alt="{{{name}}}" style="width:100%; max-width:250px;"> {{{caption}}}

   
First Appearance: {{{first_appearance}}}
Full Name{{{full_name}}}
Alias{{{alias}}}
Species{{{species}}}
Gender{{{gender}}}
Occupation{{{occupation}}}
Birth Date
       {{{birth_date}}}
       - {{{death_date}}}
       
       
Status{{{status}}}
Related To{{{related_to}}}
 

{{{footer}}}