Template:LCARS-BioStats: Difference between revisions

adding children switch in parent/sibling row & colspan switch in parent cell
(removing borders)
(adding children switch in parent/sibling row & colspan switch in parent cell)
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=660|660}}px" style="max-width:{{#switch: {{{Siblings|}}}|Yes=330|No=660|660}}px"|<font size=3 color=blue>'''Parents'''</font>
|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>
*<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 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: {{{Married|}}}|Yes={{#if: {{{Spouse|}}}|<font size=3 color=blue>'''Spouse'''</font>
|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>
*<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|}}}|
8,273

edits