Template:LCARS-Sidebar: Difference between revisions

adding if in case no ship image given
(haha! now we're talking!)
(adding if in case no ship image given)
Line 1: Line 1:
<includeonly>{| class="toc colour" style="margin: 0 0 1em 1em;border-radius: 10px 10px 10px 10px;" align="right"
<includeonly>{| class="toc colour" style="margin: 0 0 1em 1em;border-radius: 10px 10px 10px 10px;" align="right"
! style="background:#{{FIBGColor|{{{Color}}}}};width:150px;border-radius: 10px 10px 0px 0px;" align="center" |<font color=#efe576>{{{Rank}}}<br>[[{{{LastName|}}}, {{{FirstName|}}}|<font color=white>{{{FirstName|}}} {{{LastName|}}}</font>]]<br>{{#if: {{{Image|}}}|[[Image:{{{Image}}}|120px]]|[[Image:Roster-blank.jpg|120px]]}}<br>{{Pips|{{{Rank|}}}|{{{Color|}}}|{{#if: {{{Style|}}}|{{{Style|}}}||}}}}<br>{{{Position}}}<br>[[{{{Ship|}}}|<font color=white>''{{{Ship|}}}''</font>]]<br>[[Image:{{{ShipImage}}}|100px]]<br>{{{ShipReg}}}</font>
! style="background:#{{FIBGColor|{{{Color}}}}};width:150px;border-radius: 10px 10px 0px 0px;" align="center" |<font color=#efe576>{{{Rank}}}<br>[[{{{LastName|}}}, {{{FirstName|}}}|<font color=white>{{{FirstName|}}} {{{LastName|}}}</font>]]<br>{{#if: {{{Image|}}}|[[Image:{{{Image}}}|120px]]|[[Image:Roster-blank.jpg|120px]]}}<br>{{Pips|{{{Rank|}}}|{{{Color|}}}|{{#if: {{{Style|}}}|{{{Style|}}}||}}}}<br>{{{Position}}}<br>[[{{{Ship|}}}|<font color=white>''{{{Ship|}}}''</font>]]<br>{{#if: {{{Image|}}}|[[Image:{{{ShipImage}}}|100px]]|[[Image:Noimage.jpg|100px]]}}<br>{{{ShipReg}}}</font>
|-
|-
! style="font-size: 90%" |
! style="font-size: 90%" |
Line 79: Line 79:
|Position = Captain's Pet
|Position = Captain's Pet
|Ship = USS Steampunk
|Ship = USS Steampunk
|ShipImage = Steamrunner.jpg
|ShipReg = NCC-ID10T
|ShipReg = NCC-ID10T
|UserName = Jane Doe
|UserName = Jane Doe
8,273

edits