Template:ShipCharSum: Difference between revisions

fixing captain name ifs and adding third character option
(giving example working links to show true colors.)
(fixing captain name ifs and adding third character option)
Line 6: Line 6:
|align=center|'''{{{ShipReg}}}'''<br>''{{{ShipClass}}}'' class
|align=center|'''{{{ShipReg}}}'''<br>''{{{ShipClass}}}'' class
|}
|}
<font size=3><center>'''Commanding {{#if: {{{CO2-First|}}}|Officers|Officer}}''': {{n|{{{CO1-First}}}|{{{CO1-Last}}}}}{{#if: {{{CO2-First|}}}|{{#if: {{{CO3-First|}}}|, {{n|{{{CO2-First}}}|{{{CO2-Last}}}}}, & {{n|{{{CO3-First}}}|{{{CO3-Last}}}}}|<font> & {{n|{{{CO2-First}}}|{{{CO2-Last}}}}}</font>}}|}}</center></font>
<font size=3><center>'''Commanding {{#if: {{{CO2-First|}}}|Officers|Officer}}''': {{n|{{{CO1-First}}}{{#if: {{{CO1-Last|}}}|{{{CO1-Last}}}|}}}}{{#if: {{{CO2-First|}}}|{{#if: {{{CO3-First|}}}|, {{n|{{{CO2-First}}}{{#if: {{{CO2-Last|}}}|{{{CO2-Last}}}|}}}}, & {{n|{{{CO3-First}}}{{#if: {{{CO3-Last|}}}|{{{CO3-Last}}}|}}}}|<font> & {{n|{{{CO2-First}}}{{#if: {{{CO2-Last|}}}|{{{CO2-Last}}}|}}}}</font>}}|}}</center></font>
{|width=650 align=center style="background:#{{DefBGColor|{{{Color}}}}}; color:{{#switch: {{{Color|}}}| Orange=navy|Gold=navy|White=navy|{{{Color}}}=lightgray}}; border-radius: 10px 10px 10px 10px;"
{|width=650 align=center style="background:#{{DefBGColor|{{{Color}}}}}; color:{{#switch: {{{Color|}}}| Orange=navy|Gold=navy|White=navy|{{{Color}}}=lightgray}}; border-radius: 10px 10px 10px 10px;"
|width=5|
|width=5|
Line 12: Line 12:
|width=5|
|width=5|
|
|
* '''{{{{#switch: {{{Color|}}}|Orange=n|Gold=n|White=n|{{{Color}}}=nwhite}}|{{{FirstName}}}|{{#if: {{{LastName|}}}|{{{LastName}}}|}}}}''': {{{StartDate}}} to {{#if: {{{EndDate|}}}|{{{EndDate}}}|Present}}
* '''{{{{#switch: {{{Color|}}}|Orange=n|Gold=n|White=n|{{{Color}}}=nwhite}}|{{{FirstName}}}|{{#if: {{{LastName|}}}|{{{LastName}}}|}}}}''': {{#if: {{{StartDate|}}}|{{{StartDate}}}|Past}} to {{#if: {{{EndDate|}}}|{{{EndDate}}}|Present}}
**'''{{#if: {{{PrevPost|}}}|{{{PrevPost}}}, |}}{{{CurrentPost}}}'''
**'''{{#if: {{{PrevPost|}}}|{{{PrevPost}}}, |}}{{{CurrentPost}}}'''
{{{Summary}}}
{{{Summary}}}
|width=5|
|width=5|
|}{{#if: {{{FirstName1|}}}|{{(!}}width=650 align=center style="background:#{{DefBGColor|{{{Color1}}}}}; color:{{#switch: {{{Color1|}}}|Orange=navy|Gold=navy|White=navy|{{{Color}}}=lightgray}}; border-radius: 10px 10px 10px 10px;"
|}{{#if: {{{FirstName1|}}}|{{(!}}width=650 align=center style="background:#{{DefBGColor|{{{Color1}}}}}; color:{{#switch: {{{Color1|}}}|Orange=navy|Gold=navy|White=navy|{{{Color1}}}=lightgray}}; border-radius: 10px 10px 10px 10px;"
{{!}}width=5{{!}}
{{!}}width=5{{!}}
{{!}}{{TileCenter|{{{FirstName1}}}|{{#if: {{{LastName1|}}}|{{{LastName1}}}|}}|{{{Color1}}}|{{{CurrentPost1}}}|{{#if: {{{Image1|}}}|{{{Image1}}}|}}|10}}
{{!}}{{TileCenter|{{{FirstName1}}}|{{#if: {{{LastName1|}}}|{{{LastName1}}}|}}|{{{Color1}}}|{{{CurrentPost1}}}|{{#if: {{{Image1|}}}|{{{Image1}}}|}}|10}}
{{!}}width=5{{!}}
{{!}}width=5{{!}}
{{!}}
{{!}}
* '''{{{{#switch: {{{Color1|}}}|Orange=n|Gold=n|White=n|{{{Color1}}}=nwhite}}|{{{FirstName1}}}|{{#if: {{{LastName1|}}}|{{{LastName1}}}|}}}}''': {{{StartDate1}}} to {{#if: {{{EndDate1|}}}|{{{EndDate1}}}|Present}}
* '''{{{{#switch: {{{Color1|}}}|Orange=n|Gold=n|White=n|{{{Color1}}}=nwhite}}|{{{FirstName1}}}|{{#if: {{{LastName1|}}}|{{{LastName1}}}|}}}}''': {{#if: {{{StartDate1|}}}|{{{StartDate1}}}|Past}} to {{#if: {{{EndDate1|}}}|{{{EndDate1}}}|Present}}
**'''{{#if: {{{PrevPost1|}}}|{{{PrevPost1}}}, |}}{{{CurrentPost1}}}'''
**'''{{#if: {{{PrevPost1|}}}|{{{PrevPost1}}}, |}}{{{CurrentPost1}}}'''
{{{Summary1}}}
{{{Summary1}}}
{{!}}width=5{{!}}
{{!)}}|}}{{#if: {{{FirstName2|}}}|{{(!}}width=650 align=center style="background:#{{DefBGColor|{{{Color2}}}}}; color:{{#switch: {{{Color2|}}}|Orange=navy|Gold=navy|White=navy|{{{Color2}}}=lightgray}}; border-radius: 10px 10px 10px 10px;"
{{!}}width=5{{!}}
{{!}}{{TileCenter|{{{FirstName2}}}|{{#if: {{{LastName2|}}}|{{{LastName2}}}|}}|{{{Color2}}}|{{{CurrentPost2}}}|{{#if: {{{Image2|}}}|{{{Image2}}}|}}|10}}
{{!}}width=5{{!}}
{{!}}
* '''{{{{#switch: {{{Color2|}}}|Orange=n|Gold=n|White=n|{{{Color2}}}=nwhite}}|{{{FirstName2}}}|{{#if: {{{LastName2|}}}|{{{LastName2}}}|}}}}''': {{#if: {{{StartDate2|}}}|{{{StartDate2}}}|Past}} to {{#if: {{{EndDate2|}}}|{{{EndDate2}}}|Present}}
**'''{{#if: {{{PrevPost2|}}}|{{{PrevPost2}}}, |}}{{{CurrentPost2}}}'''
{{{Summary2}}}
{{!}}width=5{{!}}
{{!}}width=5{{!}}
{{!)}}|}}
{{!)}}|}}
8,273

edits