Difference between revisions of "User:Murph/Template:Stats table header"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (examples)
(Cleanup the extra space)
Line 1: Line 1:
 
{| class="mw-collapsible {{#if {{{collapsed|}}}|mw-collapsed|}} wikitable {{#if {{{sortable|}}}|sortable|}}" style="width: 100%"
 
{| class="mw-collapsible {{#if {{{collapsed|}}}|mw-collapsed|}} wikitable {{#if {{{sortable|}}}|sortable|}}" style="width: 100%"
 
 
{{#if: {{{caption|}}} |
 
{{#if: {{{caption|}}} |
 
{{!}}+ style="background: #ccc; border: 1px #aaa solid; white-space: nowrap;" {{!}} {{{caption}}}
 
{{!}}+ style="background: #ccc; border: 1px #aaa solid; white-space: nowrap;" {{!}} {{{caption}}}
 
}}
 
}}
 
 
|-
 
|-
 
! rowspan=2 {{!}} {{dict/header|Image}}
 
! rowspan=2 {{!}} {{dict/header|Image}}
 
! rowspan=2 {{!}} {{dict/header|Part}}
 
! rowspan=2 {{!}} {{dict/header|Part}}
 +
<!--
  
{{#if: <!-- any of these are non-null -->
+
-->{{#if: <!-- any of these are non-null -->
 
{{{resourceLiquidFuel|}}}
 
{{{resourceLiquidFuel|}}}
 
{{{resourceOxidizer|}}}
 
{{{resourceOxidizer|}}}
Line 21: Line 20:
 
! rowspan=2 {{!}} {{dict/header|Cost}}
 
! rowspan=2 {{!}} {{dict/header|Cost}}
 
! rowspan=2 {{!}} {{dict/header|Mass}}
 
! rowspan=2 {{!}} {{dict/header|Mass}}
}} <!-- endif -->
+
}} <!-- endif
  
 +
-->
 
! rowspan=2 {{!}} {{dict/header|Tolerance}}
 
! rowspan=2 {{!}} {{dict/header|Tolerance}}
 
! rowspan=2 {{!}} {{dict/header|Max Temp}}
 
! rowspan=2 {{!}} {{dict/header|Max Temp}}
 
+
<!--
{{#if: {{{resourceLiquidFuel|}}}|
+
-->{{#if: {{{resourceLiquidFuel|}}}|
 
! rowspan=2 {{!}} {{dict|Liquid Fuel}}
 
! rowspan=2 {{!}} {{dict|Liquid Fuel}}
}}
+
}}<!--
{{#if: {{{resourceOxidizer|}}}|
+
-->{{#if: {{{resourceOxidizer|}}}|
 
! rowspan=2 {{!}} {{dict|Oxidizer}}
 
! rowspan=2 {{!}} {{dict|Oxidizer}}
}}
+
}}<!--
{{#if: {{{resourceSolidFuel|}}}|
+
-->{{#if: {{{resourceSolidFuel|}}}|
 
! rowspan=2 {{!}} {{dict|Solid Fuel}}
 
! rowspan=2 {{!}} {{dict|Solid Fuel}}
}}
+
}}<!--
{{#if: {{{resourceMonoPropellant|}}}|
+
-->{{#if: {{{resourceMonoPropellant|}}}|
 
! rowspan=2 {{!}} {{dict|Monopropellant}}
 
! rowspan=2 {{!}} {{dict|Monopropellant}}
}}
+
}}<!--
{{#if: {{{resourceXenonGas|}}}|
+
-->{{#if: {{{resourceXenonGas|}}}|
 
! rowspan=2 {{!}} {{dict|XenonGas}}
 
! rowspan=2 {{!}} {{dict|XenonGas}}
}}
+
}}<!--
  
{{#if: {{{moduleReactionWheel|}}}|
+
-->{{#if: {{{moduleReactionWheel|}}}|
 
! colspan=2 {{!}} {{dict|ReactionWheel}}
 
! colspan=2 {{!}} {{dict|ReactionWheel}}
 
}}
 
}}
 
 
|-
 
|-
 
{{#if: <!-- any of these are non-null -->
 
{{#if: <!-- any of these are non-null -->
Line 58: Line 57:
 
! {{dict/header|Empty}}
 
! {{dict/header|Empty}}
 
! {{dict/header|Full}}
 
! {{dict/header|Full}}
}} <!-- endif -->
+
}} <!-- endif  
  
{{#if: {{{moduleReactionWheel|}}}|
+
-->{{#if: {{{moduleReactionWheel|}}}|
 
! {{dict|Torque}}
 
! {{dict|Torque}}
 
! {{dict|Usage}}
 
! {{dict|Usage}}
 
}}
 
}}
 
 
<noinclude>
 
<noinclude>
 
|} <!-- template table is unclosed, so close it now -->
 
|} <!-- template table is unclosed, so close it now -->
Line 120: Line 118:
 
|moduleReactionWheel=yes
 
|moduleReactionWheel=yes
 
}}
 
}}
 
 
|-
 
|-
 
| image
 
| image

Revision as of 04:19, 13 June 2015

Image Part Cost
(Funds)
Mass
(t)
Tolerance
(m/s)
Max Temp
LF+O Fuel Tank Example
Image Part Cost
(Funds)
Mass
(t)
Tolerance
(m/s)
Max Temp Liquid Fuel Oxidizer
Empty Full Empty Full
image name 123 456 789 101112 10 2000 500 500
image name 123 456 789 101112 10 2000 500 500
Reaction Wheel Example
Image Part Cost
(Funds)
Mass
(t)
Tolerance
(m/s)
Max Temp ReactionWheel
Torque Usage
image name 123 456 10 2000 10 5
image name 123 456 10 2000 10 5
LF+O Fuel Tank & Reaction Wheel Example
Image Part Cost
(Funds)
Mass
(t)
Tolerance
(m/s)
Max Temp Liquid Fuel Oxidizer ReactionWheel
Empty Full Empty Full Torque Usage
image name 123 456 789 101112 10 2000 500 500 10 5
image name 123 456 789 101112 10 2000 500 500 10 5