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)
 
(4 intermediate revisions by the same user not shown)
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 15: Line 13:
 
{{{resourceMonoPropellant|}}}
 
{{{resourceMonoPropellant|}}}
 
{{{resourceXenonGas|}}}
 
{{{resourceXenonGas|}}}
| <!-- part has variable mass and cost -->
+
|<nowiki/><!-- part has variable mass and cost -->
 
! colspan=2 {{!}} {{dict/header|Cost}}
 
! colspan=2 {{!}} {{dict/header|Cost}}
 
! colspan=2 {{!}} {{dict/header|Mass}}
 
! colspan=2 {{!}} {{dict/header|Mass}}
| <!-- part has static mass and cost -->
+
|<nowiki/><!-- part has static mass and cost -->
 
! 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|}}}|<nowiki/>
 
! rowspan=2 {{!}} {{dict|Liquid Fuel}}
 
! rowspan=2 {{!}} {{dict|Liquid Fuel}}
}}
+
}}<!--
{{#if: {{{resourceOxidizer|}}}|
+
-->{{#if: {{{resourceOxidizer|}}}|<nowiki/>
 
! rowspan=2 {{!}} {{dict|Oxidizer}}
 
! rowspan=2 {{!}} {{dict|Oxidizer}}
}}
+
}}<!--
{{#if: {{{resourceSolidFuel|}}}|
+
-->{{#if: {{{resourceSolidFuel|}}}|<nowiki/>
 
! rowspan=2 {{!}} {{dict|Solid Fuel}}
 
! rowspan=2 {{!}} {{dict|Solid Fuel}}
}}
+
}}<!--
{{#if: {{{resourceMonoPropellant|}}}|
+
-->{{#if: {{{resourceMonoPropellant|}}}|<nowiki/>
 
! rowspan=2 {{!}} {{dict|Monopropellant}}
 
! rowspan=2 {{!}} {{dict|Monopropellant}}
}}
+
}}<!--
{{#if: {{{resourceXenonGas|}}}|
+
-->{{#if: {{{resourceXenonGas|}}}|<nowiki/>
 
! rowspan=2 {{!}} {{dict|XenonGas}}
 
! rowspan=2 {{!}} {{dict|XenonGas}}
}}
+
}}<!--
  
{{#if: {{{moduleReactionWheel|}}}|
+
-->{{#if: {{{moduleReactionWheel|}}}|<nowiki/>
 
! colspan=2 {{!}} {{dict|ReactionWheel}}
 
! colspan=2 {{!}} {{dict|ReactionWheel}}
 
}}
 
}}
 
 
|-
 
|-
 
{{#if: <!-- any of these are non-null -->
 
{{#if: <!-- any of these are non-null -->
Line 53: Line 50:
 
{{{resourceMonoPropellant|}}}
 
{{{resourceMonoPropellant|}}}
 
{{{resourceXenonGas|}}}
 
{{{resourceXenonGas|}}}
| <!-- part has variable mass and cost -->
+
|<nowiki/><!-- part has variable mass and cost -->
 
! {{dict/header|Empty}}
 
! {{dict/header|Empty}}
 
! {{dict/header|Full}}
 
! {{dict/header|Full}}
 
! {{dict/header|Empty}}
 
! {{dict/header|Empty}}
 
! {{dict/header|Full}}
 
! {{dict/header|Full}}
}} <!-- endif -->
+
}}<!-- endif  
  
{{#if: {{{moduleReactionWheel|}}}|
+
-->{{#if: {{{moduleReactionWheel|}}}|<nowiki/>
 
! {{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 116:
 
|moduleReactionWheel=yes
 
|moduleReactionWheel=yes
 
}}
 
}}
 
 
|-
 
|-
 
| image
 
| image

Latest revision as of 05:23, 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