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)
 
(6 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 -->
  
{{{{FULLPAGENAME}}|caption=Table caption|resourceLiquidFuel=yes|resourceOxidizer=yes}}
+
{{{{FULLPAGENAME}}|caption=LF+O Fuel Tank Example|resourceLiquidFuel=yes|resourceOxidizer=yes}}
 
|-
 
|-
 
| image
 
| image
Line 93: Line 89:
 
|}
 
|}
  
{{{{FULLPAGENAME}}|caption=Table caption|moduleReactionWheel=yes}}
+
{{{{FULLPAGENAME}}|caption=Reaction Wheel Example|moduleReactionWheel=yes}}
 +
|-
 +
| image
 +
| name
 +
| 123
 +
| 456
 +
| 10
 +
| 2000
 +
| 10
 +
| 5
 +
|-
 +
| image
 +
| name
 +
| 123
 +
| 456
 +
| 10
 +
| 2000
 +
| 10
 +
| 5
 +
|}
 +
 
 +
{{{{FULLPAGENAME}}
 +
|caption=LF+O Fuel Tank & Reaction Wheel Example
 +
|resourceLiquidFuel=yes
 +
|resourceOxidizer=yes
 +
|moduleReactionWheel=yes
 +
}}
 
|-
 
|-
 
| image
 
| image
Line 99: Line 121:
 
| 123
 
| 123
 
| 456
 
| 456
 +
| 789
 +
| 101112
 
| 10
 
| 10
 
| 2000
 
| 2000
 +
| 500
 +
| 500
 
| 10
 
| 10
 
| 5
 
| 5
Line 108: Line 134:
 
| 123
 
| 123
 
| 456
 
| 456
 +
| 789
 +
| 101112
 
| 10
 
| 10
 
| 2000
 
| 2000
 +
| 500
 +
| 500
 
| 10
 
| 10
 
| 5
 
| 5
 
|}
 
|}
 +
 
</noinclude>
 
</noinclude>

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