Template:LCARS-BioStats: Difference between revisions

Jump to navigation Jump to search
adding age if to give "Unknown" if numbers not given
(adding if for unknown birthdate)
(adding age if to give "Unknown" if numbers not given)
Line 8: Line 8:
{|align=center width="100%"
{|align=center width="100%"
|width="30px" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
|width="30px" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
|width="{{#if: {{{Image|}}}|340|640}}px" style="max-width:{{#if: {{{Image|}}}|340|640}}px"|<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>{{#if: {{{BirthNote|}}}|<br><font color=blue>'''Date of Birth:'''</font><font color=black> {{{BirthNote}}}</font><br><font color=blue>'''Age:'''</font><font color=black> Unknown|<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|}}}|340|640}}px" style="max-width:{{#if: {{{Image|}}}|340|640}}px"|<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>{{#if: {{{BirthNote|}}}|<br><font color=blue>'''Date of Birth:'''</font><font color=black> {{{BirthNote}}}</font>|<br><font color=blue>'''Date of Birth:'''</font><font color=black> {{{BirthYear}}}{{{BirthMonth}}}.{{{BirthDay}}}</font>}}<br><font color=blue>'''Age:'''</font>{{#if: {{{BirthDay|}}}|<font color=black> {{Age|{{{BirthYear}}}|{{{BirthMonth}}}|{{{BirthDay}}}}}|<font color=black> Unknown}}<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" style="max-width:300px"{{!}}[[Image:{{{Image}}}{{!}}thumb]]||}}
{{!}}width="300px" style="max-width:300px"{{!}}[[Image:{{{Image}}}{{!}}thumb]]||}}
|width="30px" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
|width="30px" style="background:#{{DefBGColor|{{{Color}}}}}; border:0px solid white"|
8,273

edits

Navigation menu