Template:StarfleetHistoryTable: Difference between revisions

made title optional. Added documentation for it.
m (some tweaks to the invoke code and documentation. Added last note.)
(made title optional. Added documentation for it.)
Line 1: Line 1:
<includeonly>{| class="darktable" border='0' cellspacing='0' style="margin: 1em auto 1em auto;"
<includeonly>{| class="darktable" border='0' cellspacing='0' style="margin: 1em auto 1em auto;"
|-
|-
!  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>{{{HEADERTITLE|}}}</center>
|-
|-
! style="{{#if: {{{HEADERCOLOR|}}}|background: {{{HEADERCOLOR|}}};|}} width: 150px;"|'''Insignia'''
! style="{{#if: {{{HEADERCOLOR|}}}|background: {{{HEADERCOLOR|}}};|}} width: 150px;"|'''Insignia'''
Line 115: Line 115:
<pre>
<pre>
{{StarfleetHistoryTable
{{StarfleetHistoryTable
|HEADERTITLE=Starfleet Academy
|ROUNDBORDER=BOTH
|ROUNDBORDER=BOTH
|HEADERCOLOR=maroon
|HEADERCOLOR=maroon
Line 138: Line 139:


{{StarfleetHistoryTable
{{StarfleetHistoryTable
|HEADERTITLE=Starfleet Academy
|ROUNDBORDER=BOTH
|ROUNDBORDER=BOTH
|HEADERCOLOR=maroon
|HEADERCOLOR=maroon
Line 161: Line 163:
* ROUNDBORDER = Controls if the border of the table is rounded. Takes LEFT,RIGHT,BOTH. For normal square border, do not invoke.  
* ROUNDBORDER = Controls if the border of the table is rounded. Takes LEFT,RIGHT,BOTH. For normal square border, do not invoke.  
* HEADERCOLOR = Optional. Will set a color on the header if invoked. Please use the color names listed [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value here]
* HEADERCOLOR = Optional. Will set a color on the header if invoked. Please use the color names listed [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value here]
* HEADERTITLE = Will put a title in the first row. It's optional in case the character doesn't start at Starfleet Academy. Leaving it blank will leave a blank row


For any questions, or possibly requests, you can leave a line at [[User talk:Ceciri]]
For any questions, or possibly requests, you can leave a line at [[User talk:Ceciri]]
</noinclude>
</noinclude>
7,850

edits