Template:InfoboxCharacter: Difference between revisions

From SLDF Archive
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
{| class="wikitable" style="float: right; clear: right; width: 300px; border: 8px solid #000000; outline: 2px solid #000000; outline-offset: 3px; background: #f9f9f9; font-size: 90%; margin: 8px 8px 1em 1em;"
<table class="wikitable" style="float: right; clear: right; width: 300px; border: 8px solid #000000; outline: 2px solid #000000; outline-offset: 3px; background: #f9f9f9; font-size: 90%; margin: 8px 8px 1em 1em; border-collapse: collapse;">
<span style="display:none;">
  <tr>
<style>
    <th colspan="2" style="background: #002366; color: white; font-size: 120%; font-weight: bold; text-align: center; padding: 8px; border: 1px solid #dddddd;">Personnel Profile</th>
/* If a parameter is empty, hide its row */
  </tr>
.row-{{{born|}}} { display: none !important; }
  <tr>
.row-{{{died|}}} { display: none !important; }
    <td colspan="2" style="text-align: center; padding: 5px; border: 1px solid #dddddd;">
.row-{{{affiliation|}}} { display: none !important; }
      <gallery mode="slideshow" widths="284px" heights="200px">
.row-{{{Rank|}}} { display: none !important; }
      File:{{{image1|insert image}}}|{{{caption1|}}}
.row-{{{Titles|}}} { display: none !important; }
      File:{{{image2|insert image}}}|{{{caption2|}}}
.row-{{{Parents|}}} { display: none !important; }
      File:{{{image3|insert image}}}|{{{caption3|}}}
.row-{{{Siblings|}}} { display: none !important; }
      </gallery>
.row-{{{Spouse|}}} { display: none !important; }
    </td>
.row-{{{Children|}}} { display: none !important; }
  </tr>
 
  <tr>
/* Force rows with actual data to display normally */
    <th colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%; border: 1px solid #dddddd;">{{{name|{{PAGENAME}}}}}</th>
.show-row { display: table-row !important; }
  </tr>
</style>
 
</span>
  <!-- STATUS SECTION -->
|-
  <tr>
! colspan="2" style="background: #002366; color: white; font-size: 120%; font-weight: bold; text-align: center; padding: 8px;" | Personnel Profile
    <th colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%; border: 1px solid #dddddd;">Status</th>
|-
  </tr>
 
  {{{born|}}}
| colspan="2" style="text-align: center;" |
  {{{died|}}}
<gallery mode="slideshow" widths="284px" heights="200px">
 
File:{{{image1|insert image}}}|{{{caption1|}}}
  <!-- CAREER SECTION -->
File:{{{image2|insert image}}}|{{{caption2|}}}
  <tr>
File:{{{image3|insert image}}}|{{{caption3|}}}
    <th colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%; border: 1px solid #dddddd;">Career</th>
</gallery>
  </tr>
|-
  {{{affiliation|}}}
! colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%;" | {{{name|{{PAGENAME}}}}}
  {{{Rank|}}}
|-
  {{{Titles|}}}
! colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%;" | Status
 
 
  <!-- FAMILY SECTION -->
|- class="row-{{{born|}}} show-row"
  <tr>
! Born
    <th colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%; border: 1px solid #dddddd;">Family</th>
 
  </tr>
| {{{born|}}}
  {{{Parents|}}}
|- class="row-{{{died|}}} show-row"
  {{{Siblings|}}}
! Died
  {{{Spouse|}}}
 
  {{{Children|}}}
| {{{died|}}}
</table>
|-
! colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%;" | Career
 
|- class="row-{{{affiliation|}}} show-row"
! Affiliation
 
| {{{affiliation|}}}
|- class="row-{{{Rank|}}} show-row"
! Rank
 
| {{{Rank|}}}
|- class="row-{{{Titles|}}} show-row"
! Titles
 
| {{{Titles|}}}
|-
! colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%;" | Family
 
|- class="row-{{{Parents|}}} show-row"
! Parents
 
| {{{Parents|}}}
|- class="row-{{{Siblings|}}} show-row"
! Siblings
 
| {{{Siblings|}}}
|- class="row-{{{Spouse|}}} show-row"
! Spouse
 
| {{{Spouse|}}}
|- class="row-{{{Children|}}} show-row"
! Children
 
| {{{Children|}}}
|}
<noinclude>
<noinclude>

Revision as of 22:31, 3 July 2026

Personnel Profile
InfoboxCharacter
Status
Career
Family