Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<div class="leather-infobox">
<!-- Template:LeatherInfobox -->
  <div class="leather-infobox-title">{{{title|Infobox}}}</div>
<table class="dark-infobox">
  <div class="leather-infobox-content">
  <!-- Title Row -->
    <!-- Image Section -->
  {{#if: {{{title|}}} |
    {{#if: {{{image|}}} |  
    <tr>
       <div class="leather-infobox-image">
       <th class="dark-infobox-title" colspan="2">{{{title}}}</th>
        [[File:{{{image}}}|200px|alt={{{image_alt}}}|{{{image_caption}}}]]
    </tr>
      </div>
  }}
    }}


    <!-- Name Section -->
  <!-- Image Row -->
    {{#if: {{{name|}}} |  
  {{#if: {{{image|}}} |
       <div class="leather-infobox-section">
    <tr>
        <div class="leather-infobox-label">Name</div>
       <td class="dark-infobox-image" colspan="2">
         <div class="leather-infobox-value">{{{name}}}</div>
         [[File:{{{image}}}|250px|alt={{{image_alt}}}|{{{image_caption}}}]]
      </div>
      </td>
    }}
    </tr>
  }}


    <!-- Birth Date Section -->
  <!-- Name Row -->
    {{#if: {{{birth_date|}}} |  
  {{#if: {{{name|}}} |
      <div class="leather-infobox-section">
    <tr>
        <div class="leather-infobox-label">Date of Birth</div>
      <td class="dark-infobox-label">Name</td>
        <div class="leather-infobox-value">{{{birth_date}}}</div>
      <td class="dark-infobox-value">{{{name}}}</td>
      </div>
    </tr>
    }}
  }}


    <!-- Occupation Section -->
  <!-- Birth Date Row -->
    {{#if: {{{occupation|}}} |  
  {{#if: {{{birth_date|}}} |
      <div class="leather-infobox-section">
    <tr>
        <div class="leather-infobox-label">Occupation</div>
      <td class="dark-infobox-label">Date of Birth</td>
        <div class="leather-infobox-value">{{{occupation}}}</div>
      <td class="dark-infobox-value">{{{birth_date}}}</td>
      </div>
    </tr>
    }}
  }}


    <!-- Known For Section -->
  <!-- Occupation Row -->
    {{#if: {{{known_for|}}} |  
  {{#if: {{{occupation|}}} |
      <div class="leather-infobox-section">
    <tr>
        <div class="leather-infobox-label">Known For</div>
      <td class="dark-infobox-label">Occupation</td>
        <div class="leather-infobox-value">{{{known_for}}}</div>
      <td class="dark-infobox-value">{{{occupation}}}</td>
      </div>
    </tr>
    }}
  }}


    <!-- Spouse Section -->
  <!-- Known For Row -->
    {{#if: {{{spouse|}}} |  
  {{#if: {{{known_for|}}} |
      <div class="leather-infobox-section">
    <tr>
        <div class="leather-infobox-label">Spouse(s)</div>
      <td class="dark-infobox-label">Known For</td>
        <div class="leather-infobox-value">{{{spouse}}}</div>
      <td class="dark-infobox-value">{{{known_for}}}</td>
      </div>
    </tr>
    }}
  }}


    <!-- Children Section -->
  <!-- Spouse Row -->
    {{#if: {{{children|}}} |  
  {{#if: {{{spouse|}}} |
      <div class="leather-infobox-section">
    <tr>
        <div class="leather-infobox-label">Children</div>
      <td class="dark-infobox-label">Spouse(s)</td>
        <div class="leather-infobox-value">{{{children}}}</div>
      <td class="dark-infobox-value">{{{spouse}}}</td>
      </div>
    </tr>
    }}
  }}


    <!-- Website Section -->
  <!-- Children Row -->
    {{#if: {{{website|}}} |  
  {{#if: {{{children|}}} |
       <div class="leather-infobox-section">
    <tr>
        <div class="leather-infobox-label">Website</div>
       <td class="dark-infobox-label">Children</td>
        <div class="leather-infobox-value">[{{{website}}} {{{website}}}]</div>
      <td class="dark-infobox-value">{{{children}}}</td>
      </div>
    </tr>
    }}
  }}
  </div>
 
</div>
  <!-- Website Row -->
  {{#if: {{{website|}}} |
    <tr>
      <td class="dark-infobox-label">Website</td>
      <td class="dark-infobox-value">[{{{website}}} {{{website}}}]</td>
    </tr>
  }}
</table>





Revision as of 18:06, 6 June 2024