Template:StarfleetHistoryTable: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
m (forgot a |-)
(Testing an optional.)
Line 3: Line 3:
!  colspan="5" style="width:850px; {{#switch: {{{ROUNDBORDER|}}} | BOTH = border-radius: 20px 20px 0px 0px;" | LEFT = border-radius: 20px 0px 0px 0px;"| RIGHT = border-radius: 0px 20px 0px 0px;" | border-radius: 0px;" }}|<center>Starfleet Academy</center>
!  colspan="5" style="width:850px; {{#switch: {{{ROUNDBORDER|}}} | BOTH = border-radius: 20px 20px 0px 0px;" | LEFT = border-radius: 20px 0px 0px 0px;"| RIGHT = border-radius: 0px 20px 0px 0px;" | border-radius: 0px;" }}|<center>Starfleet Academy</center>
|-
|-
! style="background: {{{HEADERCOLOR|}}}; width: 150px;"|'''Insignia'''
! style="{{#if: {{{HEADERCOLOR|}}}|background: {{{HEADERCOLOR|}}};|}} width: 150px;"|'''Insignia'''
! style="background: {{{HEADERCOLOR|}}}; width: 150px;"|'''Rank'''
! style="{{#if: {{{HEADERCOLOR|}}}|background: {{{HEADERCOLOR|}}};|}} width: 150px;"|'''Rank'''
! style="background: {{{HEADERCOLOR|}}}; width: 150px;"|'''From'''
! style="{{#if: {{{HEADERCOLOR|}}}|background: {{{HEADERCOLOR|}}};|}} width: 150px;"|'''From'''
! style="background: {{{HEADERCOLOR|}}}; width: 150px;"|'''To'''
! style="{{#if: {{{HEADERCOLOR|}}}|background: {{{HEADERCOLOR|}}};|}} width: 150px;"|'''To'''
! style="background: {{{HEADERCOLOR|}}}; width: 250px;"|'''Position'''
! style="{{#if: {{{HEADERCOLOR|}}}|background: {{{HEADERCOLOR|}}};|}} width: 250px;"|'''Position'''
|-
|-
{{{1|}}}|-
{{{1|}}}|-
Line 121: Line 121:
</pre>
</pre>
Results in:
Results in:
{{StarfleetHistoryTable
|ROUNDBORDER=BOTH
|{{PersonalHistoryListing|Lieutenant Commander|Red|RetroSlanted|239207.13|{{stardate}}|Chief HCO}}
}}


{{StarfleetHistoryTable
{{StarfleetHistoryTable
Line 127: Line 132:
||{{PersonalHistoryListing|Lieutenant Commander|Red|RetroSlanted|239207.13|{{stardate}}|Chief HCO}}
||{{PersonalHistoryListing|Lieutenant Commander|Red|RetroSlanted|239207.13|{{stardate}}|Chief HCO}}
}}
}}


'''Variables'''
'''Variables'''

Revision as of 09:57, 18 November 2015

This table allows one to create a Starfleet History Table in LCARS style. To invoke, use the following:

{{StarfleetHistoryTable
|ROUNDBORDER=BOTH
|HEADERCOLOR=red
|{{PersonalHistoryListing|Lieutenant Commander|Red|RetroSlanted|239207.13|{{stardate}}|Chief HCO}}
}}

Results in:

Starfleet Academy
Insignia Rank From To Position
Alt-Red-O4-LtCmdr.png
Lieutenant Commander 239207.13 240103.28 Chief HCO
Starfleet Academy
Insignia Rank From To Position
Alt-Red-O4-LtCmdr.png
Lieutenant Commander 239207.13 240103.28 Chief HCO

Variables

  • ROUNDBORDER = Controls if the border of the table is rounded. Takes LEFT,RIGHT,BOTH. For no border, do not invoke.
  • HEADERCOLOR = Required. Sets the header color of the table.