Template:ShipCharSum: Difference between revisions

Jump to navigation Jump to search
trying complicated nickname ifs and switch
(→‎Example: renaming example officer)
(trying complicated nickname ifs and switch)
Line 9: Line 9:
{|width=600 align=center style="background:#{{DefBGColor|{{{Color}}}}}; color:{{#switch: {{{Color|}}}| Orange=navy|Gold=navy|White=navy|{{{Color}}}=lightgray}}; border-radius: 10px 10px 10px 10px;"
{|width=600 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|
|{{TileCenter|{{{FirstName}}}|{{#if: {{{LastName|}}}|{{{LastName}}}|}}|{{{Color}}}|{{{CurrentPost}}}|{{#if: {{{Image|}}}|{{{Image}}}|}}|10}}
|{{TileCenter|{{{FirstName}}}|{{#if: {{{LastName|}}}|{{{LastName}}}|}}|{{{Color}}}|{{{CurrentPost}}}|{{#if: {{{Image|}}}|{{{Image}}}|}}|10{{#if: {{{Nickname|}}}|{{!}}NICKNAME={{{Nickname}}}|}}}}
|width=5|
|width=5|
|
|
* '''{{{{#switch: {{{Color|}}}|Orange=n|Gold=n|White=n|{{{Color}}}=nwhite}}|{{{FirstName}}}|{{#if: {{{LastName|}}}|{{{LastName}}}|}}}}''': {{#if: {{{StartDate|}}}|{{{StartDate}}}|Past}} to {{#if: {{{EndDate|}}}|{{{EndDate}}}|Present}}
* '''[[{{nraw|{{{FirstName}}}|{{#if: {{{LastName|}}}|{{{LastName}}}|}}}}|{{#if: {{{Nickname|}}}|<font{{#switch: {{{Color1|}}}|Orange=>|Gold=>|White=>|{{{Color1}}}=color{{=}}white>}}{{{Nickname}}}|{{{FirstName}}}{{#if: {{{LastName|}}}|{{{LastName}}}|}}}}]]''': {{#if: {{{StartDate|}}}|{{{StartDate}}}|Past}} to {{#if: {{{EndDate|}}}|{{{EndDate}}}|Present}}
**'''{{#if: {{{PrevPost|}}}|<font>{{{PrevPost}}}, </font>|}}{{{CurrentPost}}}'''
**'''{{#if: {{{PrevPost|}}}|<font>{{{PrevPost}}}, </font>|}}{{{CurrentPost}}}'''
{{{Summary}}}
{{{Summary}}}
Line 18: Line 18:
|}{{#if: {{{FirstName1|}}}|{{(!}}width=600 align=center style="background:#{{DefBGColor|{{{Color1}}}}}; color:{{#switch: {{{Color1|}}}|Orange=navy|Gold=navy|White=navy|{{{Color1}}}=lightgray}}; border-radius: 10px 10px 10px 10px;"
|}{{#if: {{{FirstName1|}}}|{{(!}}width=600 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{{#if: {{{NickName1|}}}|{{!}}NICKNAME={{{NickName}}}|}}}}
{{!}}width=5{{!}}
{{!}}width=5{{!}}
{{!}}
{{!}}
Line 27: Line 27:
{{!)}}|}}{{#if: {{{FirstName2|}}}|{{(!}}width=600 align=center style="background:#{{DefBGColor|{{{Color2}}}}}; color:{{#switch: {{{Color2|}}}|Orange=navy|Gold=navy|White=navy|{{{Color2}}}=lightgray}}; border-radius: 10px 10px 10px 10px;"
{{!)}}|}}{{#if: {{{FirstName2|}}}|{{(!}}width=600 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{{!}}
{{!}}width=5{{!}}
{{!}}{{TileCenter|{{{FirstName2}}}|{{#if: {{{LastName2|}}}|{{{LastName2}}}|}}|{{{Color2}}}|{{{CurrentPost2}}}|{{#if: {{{Image2|}}}|{{{Image2}}}|}}|10}}
{{!}}{{TileCenter|{{{FirstName2}}}|{{#if: {{{LastName2|}}}|{{{LastName2}}}|}}|{{{Color2}}}|{{{CurrentPost2}}}|{{#if: {{{Image2|}}}|{{{Image2}}}|}}|10{{#if: {{{NickName2|}}}|{{!}}NICKNAME={{{NickName}}}|}}}}
{{!}}width=5{{!}}
{{!}}width=5{{!}}
{{!}}
{{!}}
8,273

edits

Navigation menu