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:
{| class="dark-infobox wikitable" style="width: 320px; float: right; clear: right; position: relative; top: 0; background-color: #222222; color: #fff; border: 3px solid #800000; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.7); margin: 10px;"
<!-- Template:SimpleDarkInfobox -->
|-
<table class="infobox" style="width: 300px; float: right; clear: right; margin: 10px; border: 2px solid #800000; border-radius: 10px; background-color: #333; color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);">
| {{{title|}}}
  <!-- Title -->
 
  {{#if: {{{title|}}} |
{{#if: {{{image|}}} |
    <tr>
|-
      <th colspan="2" style="background-color: #800000; color: #FFFFFF; padding: 10px; text-align: center; font-size: 1.25em; font-weight: bold;">
 
        {{{title}}}
| [[File:{{{image}}}|250px|alt={{{image_alt}}}|{{{image_caption}}}]]
      </th>
}}
    </tr>
 
  }}
{{#if: {{{name|}}} |
 
|-
  <!-- Image -->
| style="background-color: #444444; font-weight: bold; padding: 5px; border-right: 1px solid #800000; width: 40%;"
  {{#if: {{{image|}}} |
| Name
    <tr>
| style="background-color: #222222; padding: 5px;"
      <td colspan="2" style="text-align: center; padding: 10px;">
| {{{name}}}
        [[File:{{{image}}}|250px|center|alt={{{image_alt|}}}|{{{image_caption|}}}]]
}}
      </td>
 
    </tr>
{{#if: {{{birth_date|}}} |
  }}
|-
 
| style="background-color: #444444; font-weight: bold; padding: 5px; border-right: 1px solid #800000; width: 40%;"
  <!-- Name -->
| Date of Birth
  {{#if: {{{name|}}} |
| style="background-color: #222222; padding: 5px;"
    <tr>
| {{{birth_date}}}
      <td style="background-color: #444; font-weight: bold; padding: 5px; width: 40%;">
}}
        Name
 
      </td>
{{#if: {{{occupation|}}} |
      <td style="background-color: #222; padding: 5px;">
|-
        {{{name}}}
| style="background-color: #444444; font-weight: bold; padding: 5px; border-right: 1px solid #800000; width: 40%;"
      </td>
| Occupation
    </tr>
| style="background-color: #222222; padding: 5px;"
  }}
| {{{occupation}}}
 
}}
  <!-- Birth Date -->
 
  {{#if: {{{birth_date|}}} |
{{#if: {{{known_for|}}} |
    <tr>
|-
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
| style="background-color: #444444; font-weight: bold; padding: 5px; border-right: 1px solid #800000; width: 40%;"
        Date of Birth
| Known For
      </td>
| style="background-color: #222222; padding: 5px;"
      <td style="background-color: #222; padding: 5px;">
| {{{known_for}}}
        {{{birth_date}}}
}}
      </td>
 
    </tr>
{{#if: {{{spouse|}}} |
  }}
|-
 
| style="background-color: #444444; font-weight: bold; padding: 5px; border-right: 1px solid #800000; width: 40%;"
  <!-- Occupation -->
| Spouse(s)
  {{#if: {{{occupation|}}} |
| style="background-color: #222222; padding: 5px;"
    <tr>
| {{{spouse}}}
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
}}
        Occupation
 
      </td>
{{#if: {{{children|}}} |
      <td style="background-color: #222; padding: 5px;">
|-
        {{{occupation}}}
| style="background-color: #444444; font-weight: bold; padding: 5px; border-right: 1px solid #800000; width: 40%;"
      </td>
| Children
    </tr>
| style="background-color: #222222; padding: 5px;"
  }}
| {{{children}}}
 
}}
  <!-- Known For -->
 
  {{#if: {{{known_for|}}} |
{{#if: {{{website|}}} |
    <tr>
|-
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
| style="background-color: #444444; font-weight: bold; padding: 5px; border-right: 1px solid #800000; width: 40%;"
        Known For
| Website
      </td>
| style="background-color: #222222; padding: 5px;"
      <td style="background-color: #222; padding: 5px;">
| [{{{website}}} {{{website}}}]
        {{{known_for}}}
}}
      </td>
|}
    </tr>
 
  }}
 
 
  <!-- Spouse -->
  {{#if: {{{spouse|}}} |
    <tr>
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
        Spouse(s)
      </td>
      <td style="background-color: #222; padding: 5px;">
        {{{spouse}}}
      </td>
    </tr>
  }}
 
  <!-- Children -->
  {{#if: {{{children|}}} |
    <tr>
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
        Children
      </td>
      <td style="background-color: #222; padding: 5px;">
        {{{children}}}
      </td>
    </tr>
  }}
 
  <!-- Website -->
  {{#if: {{{website|}}} |
    <tr>
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
        Website
      </td>
      <td style="background-color: #222; padding: 5px;">
        [{{{website}}} {{{website}}}]
      </td>
    </tr>
  }}
</table>


<!--Last line of your template code--><noinclude>
<!--Last line of your template code--><noinclude>

Revision as of 14:31, 9 June 2024