Template:KolkFI: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(trying swtich without if inside)
(trying no break in swtich)
Line 1: Line 1:
<includeonly>{| class="TOCfixed" style="margin: 0 0 1em 1em;border-radius: 15px 15px 15px 15px;" align="right"
<includeonly>{| class="TOCfixed" style="margin: 0 0 1em 1em;border-radius: 15px 15px 15px 15px;" align="right"
! style="background:#{{FIBGColor|{{{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]]|{{{Image|}}}=[[Image:{{{Image}}}|120px]]|<br>}}<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]]||}}{{#if: {{{ShipReg|}}}|<br>{{{ShipReg|}}}||}}
! style="background:#{{FIBGColor|{{{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]]|{{{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]]||}}{{#if: {{{ShipReg|}}}|<br>{{{ShipReg|}}}||}}
|-
|-
| style="font-size: 90%" |
| style="font-size: 90%" |
Line 33: Line 33:
|FirstName = Benjamin
|FirstName = Benjamin
|LastName = Janeway
|LastName = Janeway
|Image = None
|Post = Assistant<br>Commanding Officer
|Post = Assistant<br>Commanding Officer
|Ship = USS Shatnerprise
|Ship = USS Shatnerprise

Revision as of 16:29, 7 August 2014


This is my secret fixed-vertical version of Template:LCARS-Sidebar, which I created for characters.

To use this fixed template, type the following anywhere on your character page:

{{KolkFI
|Color = Color (use Red, Orange, Gold, Green, Teal, Blue, Violet, Black, Silver, or White)
|Rank = Rank (optional - defaults to civilian, but then not written atop)
|Style = Pip Style (use DS9, STO, FI, Slanted, or leave blank for default)
|FirstName = Jane
|LastName = Doe (optional)
|Image = Filename.jpg (optional - Type None if you want a place-keeping image [see example], don't include if you want no image at all)
|Post = Captain's Pet (optional)
|Ship = USS Steampunk (optional)
|ShipImage = FileName.jpg (optional)
|ShipReg = NCC-ID10T (optional)
|UserName = Jane Doe (optional)
|Extra = *Whatever You Want (optional)
}}

Example: See floating sidebar

Captander
Benjamin Janeway

05a-Captander-Red.png
Assistant
Commanding Officer
USS Shatnerprise
Constitution.jpg
NCC-1701

User Page