Template:LCARS-BioStats: Difference between revisions

trying switch for widths
(→‎Example: swapping mother/father)
(trying switch for widths)
Line 8: Line 8:
{|align=center width="100%"
{|align=center width="100%"
|width="15px" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
|width="15px" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
|width="385px" style="max-width:685px"|<font color=blue>'''Full Name:'''</font><font color=black> {{{Name}}}</font>{{#if: {{{MaidenName|}}}|<br><font color=blue>'''Maiden Name:'''</font><font color=black> {{{MaidenName}}}</font>||}}{{#if: {{{NickName|}}}|<br><font color=blue>'''Nickname(s):'''</font><font color=black> {{{NickName}}}</font>||}}<br><font color=blue>'''Race:'''</font> [[{{{Race}}}|<font color=black>{{{Race}}}</font>]]<br><font color=blue>'''Gender:'''</font><font color=black> {{{Gender}}}</font><br><font color=blue>'''Date of Birth:'''</font><font color=black> {{{BirthYear}}}{{{BirthMonth}}}.{{{BirthDay}}}</font><br><font color=blue>'''Age:'''</font><font color=black> {{Age|{{{BirthYear}}}|{{{BirthMonth}}}|{{{BirthDay}}}}}<br><font color=blue>'''Place of Birth:'''</font><font color=black> {{{BirthPlace}}}</font>{{#if: {{{TeleRating|}}}|<br>'''[[T/E Rating System|<font color=blue>Telepathy Rating:</font>]]'''<font color=black> {{{TeleRating}}}</font>||}}<br><font color=blue>'''Rank:'''</font><font color=black> {{{Rank}}}</font>{{#if: {{{Post|}}}|<br><font color=blue>'''Duty Post:'''</font><font color=black> {{{Post}}}</font>|}}{{#if: {{{Ship|}}}|<br><font color=blue>'''Assignment:'''</font><font color=black> [[{{{Ship}}}|''{{{Ship}}}'']]</font>{{#if: {{{ShipReg|}}}|<font color=black> {{{ShipReg}}}</font>||}}||}}{{#if: {{{Location|}}}|<br><font color=blue>'''Location:'''</font><font color=black> {{{Location}}}</font>||}}{{#if: {{{Image|}}}|<br>
|width="{{#if: {{{Image|}}}|385|685}}px" style="max-width:685px"|<font color=blue>'''Full Name:'''</font><font color=black> {{{Name}}}</font>{{#if: {{{MaidenName|}}}|<br><font color=blue>'''Maiden Name:'''</font><font color=black> {{{MaidenName}}}</font>||}}{{#if: {{{NickName|}}}|<br><font color=blue>'''Nickname(s):'''</font><font color=black> {{{NickName}}}</font>||}}<br><font color=blue>'''Race:'''</font> [[{{{Race}}}|<font color=black>{{{Race}}}</font>]]<br><font color=blue>'''Gender:'''</font><font color=black> {{{Gender}}}</font><br><font color=blue>'''Date of Birth:'''</font><font color=black> {{{BirthYear}}}{{{BirthMonth}}}.{{{BirthDay}}}</font><br><font color=blue>'''Age:'''</font><font color=black> {{Age|{{{BirthYear}}}|{{{BirthMonth}}}|{{{BirthDay}}}}}<br><font color=blue>'''Place of Birth:'''</font><font color=black> {{{BirthPlace}}}</font>{{#if: {{{TeleRating|}}}|<br>'''[[T/E Rating System|<font color=blue>Telepathy Rating:</font>]]'''<font color=black> {{{TeleRating}}}</font>||}}<br><font color=blue>'''Rank:'''</font><font color=black> {{{Rank}}}</font>{{#if: {{{Post|}}}|<br><font color=blue>'''Duty Post:'''</font><font color=black> {{{Post}}}</font>|}}{{#if: {{{Ship|}}}|<br><font color=blue>'''Assignment:'''</font><font color=black> [[{{{Ship}}}|''{{{Ship}}}'']]</font>{{#if: {{{ShipReg|}}}|<font color=black> {{{ShipReg}}}</font>||}}||}}{{#if: {{{Location|}}}|<br><font color=blue>'''Location:'''</font><font color=black> {{{Location}}}</font>||}}{{#if: {{{Image|}}}|<br>
{{!}}width="300px"{{!}}[[Image:{{{Image}}}{{!}}thumb]]||}}
{{!}}width="300px" style="max-width:300px"{{!}}[[Image:{{{Image}}}{{!}}thumb]]||}}
|}
|}
{|align=center width="100%" height="5px"
{|align=center width="100%" height="5px"
Line 38: Line 38:
{|align=center width="100%"
{|align=center width="100%"
|width="15px" rowspan="2" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
|width="15px" rowspan="2" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
|width="342px" style="max-width:685px"|<font size=3 color=blue>'''Parents'''</font>
|width="{{#switch: {{{Siblings|}}}|Yes=342|No={{#switch: {{{Children|}}}|Yes=342|No=685|685}}|{{#switch: {{{Children|}}}|Yes=342|No=685|685}}}}px" style="max-width:685px"|<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> {{{MotherMaiden}}}</font>||}}{{#if: {{{FatherBirthYear|}}}|
**<font color=blue>'''Maiden Name:'''</font><font color=black> {{{MotherMaiden}}}</font>||}}{{#if: {{{FatherBirthYear|}}}|
8,273

edits