Template:LCARS-Sidebar: Difference between revisions

Jump to navigation Jump to search
adding switch for font colors
(→‎Examples: changing Teal example info)
(adding switch for font colors)
Line 1: Line 1:
<includeonly>{| class="toc" style="margin: 0 0 0 0;border-radius: 15px 15px 15px 15px;" align="right"
<includeonly>{| class="toc" style="margin: 0 0 0 0;border-radius: 15px 15px 15px 15px;" align="right"
! style="background:#{{#if: {{{Style|}}}|{{FIBGColor|{{{Color}}}}}|{{DefBGColor|{{{Color}}}}}|}};width:150px;border-radius: 15px 15px 0px 0px;" align="center" |<font color=#efe576>{{#if: {{{Rank|}}}|{{{Rank|}}}<br>||}}[[{{{LastName|}}}, {{{FirstName|}}}|<font color=white>{{{FirstName|}}} {{{LastName|}}}</font>]]<br>{{#switch: {{{Image}}}|None=[[Image:Roster-blank.jpg|120px]]<br>|{{{Image|}}}=[[Image:{{{Image}}}|120px]]<br>||}}{{Pip120|{{#if: {{{Rank|}}}|{{{Rank|}}}|Civilian|}}|{{{Color|}}}|{{#if: {{{Style|}}}|{{{Style|}}}||}}}}{{#if: {{{Post|}}}|{{{Post|}}}<br>||}}{{#if: {{{Ship|}}}|[[{{{Ship|}}}|<font color=white>''{{{Ship|}}}''</font>]]<br>{{#if: {{{ShipImage|}}}|[[Image:{{{ShipImage}}}|120px]]<br>||}}{{#if: {{{ShipReg|}}}|<br>{{{ShipReg|}}}||}}||}}</font>
! style="background:#{{#if: {{{Style|}}}|{{FIBGColor|{{{Color}}}}}|{{DefBGColor|{{{Color}}}}}|}};width:150px;border-radius: 15px 15px 0px 0px;" align="center" |<font color={{#switch: {{{Color|}}}|Gold=steelblue|White=steelblue|{{{Color|}}}=goldenrod||}}>{{#if: {{{Rank|}}}|{{{Rank|}}}<br>||}}[[{{{LastName|}}}, {{{FirstName|}}}|<font color=white>{{{FirstName|}}} {{{LastName|}}}</font>]]<br>{{#switch: {{{Image}}}|None=[[Image:Roster-blank.jpg|120px]]<br>|{{{Image|}}}=[[Image:{{{Image}}}|120px]]<br>||}}{{Pip120|{{#if: {{{Rank|}}}|{{{Rank|}}}|Civilian|}}|{{{Color|}}}|{{#if: {{{Style|}}}|{{{Style|}}}||}}}}{{#if: {{{Post|}}}|{{{Post|}}}<br>||}}{{#if: {{{Ship|}}}|[[{{{Ship|}}}|<font color={{#switch: {{{Color|}}}|Gold=black|White=black|{{{Color|}}}=white||}}>''{{{Ship|}}}''</font>]]<br>{{#if: {{{ShipImage|}}}|[[Image:{{{ShipImage}}}|120px]]<br>||}}{{#if: {{{ShipReg|}}}|<br>{{{ShipReg|}}}||}}||}}</font>
|-
|-
| style="font-size: 90%" |
| style="font-size: 90%" |
Line 6: Line 6:
|-
|-
{{#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" {{!}}
[[User:{{{UserName}}}|<font color=white>User Page</font>]]||}}
[[User:{{{UserName}}}|<font color={{#switch: {{{Color|}}}|Gold=black|White=black|{{{Color|}}}=white||}}>User Page</font>]]||}}
|}</includeonly>
|}</includeonly>
   
   
8,273

edits

Navigation menu