Template:LCARS-Sidebar: Difference between revisions

simplifying ifs
(oops forgot first | in BirthYear if)
(simplifying ifs)
Line 4: Line 4:
| style="font-size: 90%" |
| style="font-size: 90%" |
{{{Extra|}}}
{{{Extra|}}}
{{#if: {{{Species|}}}|{{!}}- style="vertical-align:top;"{{!}}'''Species:'''{{!}}{{{Species}}}||}}
{{#if: {{{Species|}}}|'''Species:'''{{{Species}}}<br>||}}
{{#if: {{{Gender|}}}|{{!}}- style="vertical-align:top;"{{!}}'''Gender:'''{{!}}{{{Gender}}}||}}
{{#if: {{{Gender|}}}|'''Gender:'''{{{Gender}}}<br>||}}
{{#if: {{{BirthYear|}}}|{{!}}- style="vertical-align:top; background:#f0f0f0;"{{!}}'''Born:'''{{!}}|{{{BirthYear}}}{{{BirthMonth}}}.{{{BirthDate}}}{{!}}- style="vertical-align:top;"{{!}}'''Age:'''{{!}}{{Age|{{{BirthYear|}}}|{{{BirthMonth|}}}|{{{BirthDate|}}}}}||}}
{{#if: {{{BirthYear|}}}|'''Born:'''{{{BirthYear}}}{{{BirthMonth}}}.{{{BirthDate}}}<br>'''Age:'''{{Age|{{{BirthYear|}}}|{{{BirthMonth|}}}|{{{BirthDate|}}}}}<br>||}}
{{#if: {{{BirthPlace|}}}|{{!}}- style="vertical-align:top;"{{!}}'''BirthPlace:'''{{!}}{{{BirthPlace}}}||}}
{{#if: {{{BirthPlace|}}}|'''BirthPlace:'''{{{BirthPlace}}}<br>||}}
|-
|-
{{#if: {{{UserName|}}}|! style="background:#{{#if: {{{Style|}}}|{{FIBGColor|{{{Color}}}}}|{{DefBGColor|{{{Color}}}}}|}};border-radius: 0px 0px 15px 15px; font-size: 80%" align="center" {{!}}
{{#if: {{{UserName|}}}|! style="background:#{{#if: {{{Style|}}}|{{FIBGColor|{{{Color}}}}}|{{DefBGColor|{{{Color}}}}}|}};border-radius: 0px 0px 15px 15px; font-size: 80%" align="center" {{!}}
8,273

edits