Template:LCARS-BioStats: Difference between revisions

trying colspan switch instead of width switch for parents and spouses cells
(adding children switch in parent/sibling row & colspan switch in parent cell)
(trying colspan switch instead of width switch for parents and spouses cells)
Line 39: Line 39:
{|align=center width="100%" height="20px"
{|align=center width="100%" height="20px"
|width="20px" rowspan="2" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
|width="20px" rowspan="2" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
|width="{{#switch: {{{Siblings|}}}|Yes=330|No={{#switch: {{{Children|}}}|Yes=330|No=660|660}}|660}}px" style="max-width:{{#switch: {{{Siblings|}}}|Yes=330|No={{#switch: {{{Children|}}}|Yes=330|No=660|660}}|660}}px"|<font size=3 color=blue>'''Parents'''</font>
|width="330px" style="max-width:660px" {{#switch: {{{Siblings|}}}|Yes=|No=colspan="2"|colspan="2"}}|<font size=3 color=blue>'''Parents'''</font>
*<font color=blue>'''Father:'''</font>{{#if: {{{Father|}}}|<font color=black> {{{Father}}}</font>{{#if: {{{FatherMaiden|}}}|
*<font color=blue>'''Father:'''</font>{{#if: {{{Father|}}}|<font color=black> {{{Father}}}</font>{{#if: {{{FatherMaiden|}}}|
**<font color=blue>'''Maiden Name:'''</font><font color=black> {{{FatherMaiden}}}</font>||}}{{#if: {{{FatherBirthDate|}}}|
**<font color=blue>'''Maiden Name:'''</font><font color=black> {{{FatherMaiden}}}</font>||}}{{#if: {{{FatherBirthDate|}}}|
Line 88: Line 88:
**<font color=blue>'''Date of Death:'''</font><font color=black> {{{AdoptMotherDeathDate}}}</font>||}}{{#if: {{{AdoptMotherDeathPlace|}}}|
**<font color=blue>'''Date of Death:'''</font><font color=black> {{{AdoptMotherDeathDate}}}</font>||}}{{#if: {{{AdoptMotherDeathPlace|}}}|
**<font color=blue>'''Place of Death:'''</font><font color=black> {{{AdoptMotherDeathPlace}}}</font>||}}|}}
**<font color=blue>'''Place of Death:'''</font><font color=black> {{{AdoptMotherDeathPlace}}}</font>||}}|}}
|{{#switch: {{{Siblings|}}}|Yes=width="330px" style="max-width:330px"{{!}}<font size=3 color=blue>'''Siblings'''</font>{{#if: {{{Brother1|}}}|
{{#switch: {{{Siblings|}}}|Yes={{!}}width="330px" style="max-width:330px"{{!}}<font size=3 color=blue>'''Siblings'''</font>{{#if: {{{Brother1|}}}|
*<font color=blue>'''Brother:'''</font><font color=black> {{{Brother1}}}</font>{{#if: {{{Brother1BirthDate|}}}|
*<font color=blue>'''Brother:'''</font><font color=black> {{{Brother1}}}</font>{{#if: {{{Brother1BirthDate|}}}|
**<font color=blue>'''Date of Birth:'''</font><font color=black> {{{Brother1BirthDate}}}</font>||}}{{#if: {{{Brother1BirthPlace|}}}|
**<font color=blue>'''Date of Birth:'''</font><font color=black> {{{Brother1BirthDate}}}</font>||}}{{#if: {{{Brother1BirthPlace|}}}|
Line 133: Line 133:
|width="20px" rowspan="2" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
|width="20px" rowspan="2" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
|-
|-
|width="{{#switch: {{{Children|}}}|Yes=330|No=660|660}}px" style="max-width:{{#switch: {{{Children|}}}|Yes=330|No=660|660}}px" {{#switch: {{{Children|}}}|Yes=|No=colspan="2"|colspan="2"}}|{{#switch: {{{Married|}}}|Yes={{#if: {{{Spouse|}}}|<font size=3 color=blue>'''Spouse'''</font>
|width="330px" style="max-width:660px" {{#switch: {{{Children|}}}|Yes=|No=colspan="2"|colspan="2"}}|{{#switch: {{{Married|}}}|Yes={{#if: {{{Spouse|}}}|<font size=3 color=blue>'''Spouse'''</font>
*<font color=blue>'''Name:'''</font><font color=black> {{{Spouse}}}</font>{{#if: {{{SpouseMaiden|}}}|
*<font color=blue>'''Name:'''</font><font color=black> {{{Spouse}}}</font>{{#if: {{{SpouseMaiden|}}}|
**<font color=blue>'''Maiden Name:'''</font><font color=black> {{{SpouseMaiden}}}</font>||}}{{#if: {{{WeddingDate|}}}|
**<font color=blue>'''Maiden Name:'''</font><font color=black> {{{SpouseMaiden}}}</font>||}}{{#if: {{{WeddingDate|}}}|
Line 161: Line 161:
**<font color=blue>'''Date of Death:'''</font><font color=black> {{{ExSpouse2DeathDate}}}</font>||}}{{#if: {{{ExSpouse2DeathPlace|}}}|
**<font color=blue>'''Date of Death:'''</font><font color=black> {{{ExSpouse2DeathDate}}}</font>||}}{{#if: {{{ExSpouse2DeathPlace|}}}|
**<font color=blue>'''Place of Death:'''</font><font color=white> {{{ExSpouse2DeathPlace}}}</font>||}}|}}|}}
**<font color=blue>'''Place of Death:'''</font><font color=white> {{{ExSpouse2DeathPlace}}}</font>||}}|}}|}}
|{{#switch: {{{Children|}}}|Yes=width="330px" style="max-width:330px"{{!}}<font size=3 color=blue>'''Children'''</font>{{#if: {{{Son1|}}}|
{{#switch: {{{Children|}}}|Yes={{!}}width="330px" style="max-width:330px"{{!}}<font size=3 color=blue>'''Children'''</font>{{#if: {{{Son1|}}}|
*<font color=blue>'''Son:'''</font><font color=black> {{{Son1}}}</font>{{#if: {{{Son1BirthDate|}}}|
*<font color=blue>'''Son:'''</font><font color=black> {{{Son1}}}</font>{{#if: {{{Son1BirthDate|}}}|
**<font color=blue>'''Date of Birth:'''</font><font color=black> {{{Son1BirthDate}}}</font>||}}{{#if: {{{Son1BirthPlace|}}}|
**<font color=blue>'''Date of Birth:'''</font><font color=black> {{{Son1BirthDate}}}</font>||}}{{#if: {{{Son1BirthPlace|}}}|
8,273

edits