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:
<div 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; box-sizing: border-box; font-family: sans-serif;">
<div style="display:none;">
<style>
/* Hide the entire row if the variable string matches the class prefix exactly */
[class*="--hide-{{{born|}}}"] { display: none !important; }
[class*="--hide-{{{died|}}}"] { display: none !important; }
[class*="--hide-{{{affiliation|}}}"] { display: none !important; }
[class*="--hide-{{{Rank|}}}"] { display: none !important; }
[class*="--hide-{{{titles|}}}"] { display: none !important; }
[class*="--hide-{{{Parents|}}}"] { display: none !important; }
[class*="--hide-{{{Siblings|}}}"] { display: none !important; }
[class*="--hide-{{{Spouse|}}}"] { display: none !important; }
[class*="--hide-{{{Children|}}}"] { display: none !important; }
</style>
</div>


  <!-- MAIN INFOCARD HEADER -->
{| 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;"
  <div style="background: #002366; color: white; font-size: 120%; font-weight: bold; text-align: center; padding: 8px;">Personnel Profile</div>
|-
! colspan="2" style="background: #002366; color: white; font-size: 120%; font-weight: bold; text-align: center; padding: 8px;" | Personnel Profile
|-


  <!-- NATIVE GALLERY CAROUSEL CONTAINER -->
| colspan="2" style="text-align: center;" |
  <div style="text-align: center; background: #ffffff; padding: 4px; border-bottom: 1px solid #ccc;">
<gallery mode="slideshow" widths="284px" heights="200px">
<gallery mode="slideshow" widths="280px" heights="200px">
File:{{{image1|insert image}}}|{{{caption1|}}}
File:{{{image1|insert image}}}|{{{caption1|}}}
File:{{{image2|insert image}}}|{{{caption2|}}}
File:{{{image2|insert image}}}|{{{caption2|}}}
File:{{{image3|insert image}}}|{{{caption3|}}}
File:{{{image3|insert image}}}|{{{caption3|}}}
</gallery>
</gallery>
  </div>
|-
! colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%;" | {{{name|{{PAGENAME}}}}}
|-
! colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%;" | Status


  <!-- CHARACTER PROFILE HEADER -->
|- class="--hide-{{{born|}}}"
  <div style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%; border-bottom: 1px solid #ccc;">{{{name|{{PAGENAME}}}}}</div>
! Born


  <!-- STATUS BLOCK -->
| {{{born|}}}
  <div style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%;">Status</div>
|- class="--hide-{{{died|}}}"
 
! Died
  <div style="display: flex; margin: 0; border-bottom: 1px solid #ccc; max-height: var(--h-{{{born|}}}); overflow: hidden;">
    <div style="width: 35%; font-weight: bold; background: #f2f2f2; padding: 6px; border-right: 1px solid #ccc; flex-shrink: 0; box-sizing: border-box;">Born</div>
    <div style="width: 65%; padding: 6px; margin: 0; box-sizing: border-box;">{{{born|}}}</div>
  </div>


  <div style="display: flex; margin: 0; border-bottom: 1px solid #ccc; max-height: var(--h-{{{died|}}}); overflow: hidden;">
| {{{died|}}}
    <div style="width: 35%; font-weight: bold; background: #f2f2f2; padding: 6px; border-right: 1px solid #ccc; flex-shrink: 0; box-sizing: border-box;">Died</div>
|-
    <div style="width: 65%; padding: 6px; margin: 0; box-sizing: border-box;">{{{died|}}}</div>
! colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%;" | Career
  </div>


  <!-- CAREER BLOCK -->
|- class="--hide-{{{affiliation|}}}"
  <div style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%;">Career</div>
! Affiliation


  <div style="display: flex; margin: 0; border-bottom: 1px solid #ccc; max-height: var(--h-{{{affiliation|}}}); overflow: hidden;">
| {{{affiliation|}}}
    <div style="width: 35%; font-weight: bold; background: #f2f2f2; padding: 6px; border-right: 1px solid #ccc; flex-shrink: 0; box-sizing: border-box;">Affiliation</div>
|- class="--hide-{{{Rank|}}}"
    <div style="width: 65%; padding: 6px; margin: 0; box-sizing: border-box;">{{{affiliation|}}}</div>
! Rank
  </div>


  <div style="display: flex; margin: 0; border-bottom: 1px solid #ccc; max-height: var(--h-{{{Rank|}}}); overflow: hidden;">
| {{{Rank|}}}
    <div style="width: 35%; font-weight: bold; background: #f2f2f2; padding: 6px; border-right: 1px solid #ccc; flex-shrink: 0; box-sizing: border-box;">Rank</div>
|- class="--hide-{{{titles|}}}"
    <div style="width: 65%; padding: 6px; margin: 0; box-sizing: border-box;">{{{Rank|}}}</div>
! Titles
  </div>


  <div style="display: flex; margin: 0; border-bottom: 1px solid #ccc; max-height: var(--h-{{{titles|}}}); overflow: hidden;">
| {{{titles|}}}
    <div style="width: 35%; font-weight: bold; background: #f2f2f2; padding: 6px; border-right: 1px solid #ccc; flex-shrink: 0; box-sizing: border-box;">Titles</div>
|-
    <div style="width: 65%; padding: 6px; margin: 0; box-sizing: border-box;">{{{titles|}}}</div>
! colspan="2" style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%;" | Family
  </div>


  <!-- FAMILY BLOCK -->
|- class="--hide-{{{Parents|}}}"
  <div style="background: #002366; color: white; font-weight: bold; text-align: center; padding: 6px; font-size: 110%;">Family</div>
! Parents


  <div style="display: flex; margin: 0; border-bottom: 1px solid #ccc; max-height: var(--h-{{{Parents|}}}); overflow: hidden;">
| {{{Parents|}}}
    <div style="width: 35%; font-weight: bold; background: #f2f2f2; padding: 6px; border-right: 1px solid #ccc; flex-shrink: 0; box-sizing: border-box;">Parents</div>
|- class="--hide-{{{Siblings|}}}"
    <div style="width: 65%; padding: 6px; margin: 0; box-sizing: border-box;">{{{Parents|}}}</div>
! Siblings
  </div>


  <div style="display: flex; margin: 0; border-bottom: 1px solid #ccc; max-height: var(--h-{{{Siblings|}}}); overflow: hidden;">
| {{{Siblings|}}}
    <div style="width: 35%; font-weight: bold; background: #f2f2f2; padding: 6px; border-right: 1px solid #ccc; flex-shrink: 0; box-sizing: border-box;">Siblings</div>
|- class="--hide-{{{Spouse|}}}"
    <div style="width: 65%; padding: 6px; margin: 0; box-sizing: border-box;">{{{Siblings|}}}</div>
! Spouse
  </div>


  <div style="display: flex; margin: 0; border-bottom: 1px solid #ccc; max-height: var(--h-{{{Spouse|}}}); overflow: hidden;">
| {{{Spouse|}}}
    <div style="width: 35%; font-weight: bold; background: #f2f2f2; padding: 6px; border-right: 1px solid #ccc; flex-shrink: 0; box-sizing: border-box;">Spouse</div>
|- class="--hide-{{{Children|}}}"
    <div style="width: 65%; padding: 6px; margin: 0; box-sizing: border-box;">{{{Spouse|}}}</div>
! Children
  </div>


  <div style="display: flex; margin: 0; border-bottom: 1px solid #ccc; max-height: var(--h-{{{Children|}}}); overflow: hidden;">
| {{{Children|}}}
    <div style="width: 35%; font-weight: bold; background: #f2f2f2; padding: 6px; border-right: 1px solid #ccc; flex-shrink: 0; box-sizing: border-box;">Children</div>
|}
    <div style="width: 65%; padding: 6px; margin: 0; box-sizing: border-box;">{{{Children|}}}</div>
  </div>
 
</div>
<noinclude>
<noinclude>

Revision as of 22:44, 3 July 2026

<style> /* Hide the entire row if the variable string matches the class prefix exactly */ [class*="--hide-"] { display: none !important; } [class*="--hide-"] { display: none !important; } [class*="--hide-"] { display: none !important; } [class*="--hide-"] { display: none !important; } [class*="--hide-"] { display: none !important; } [class*="--hide-"] { display: none !important; } [class*="--hide-"] { display: none !important; } [class*="--hide-"] { display: none !important; } [class*="--hide-"] { display: none !important; } </style>

Personnel Profile
InfoboxCharacter
Status
Born
Died
Career
Affiliation
Rank
Titles
Family
Parents
Siblings
Spouse
Children