Template:Infobox engines: Difference between revisions

From Kerbal Space Program 2 Wiki
Jump to navigation Jump to search
moved units to data fields
Tag: 2017 source edit
simplified formatting
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
</noinclude><includeonly>
</noinclude><includeonly>
{{Infobox | subbox = yes
{{Infobox | subbox = yes
  | headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; text-align: left;
  | headerstyle  = font-weight: bold; font-size: 18px; text-align: left;
  | labelstyle  = width: 60%; text-align: left;
  | labelstyle  = width: 50%; text-align: left;
  | header20 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode}} | {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|mode_name}} |}}
  | header20 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode}} | {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|mode_name}} |}}
  | label21  = {{#invoke:Data infobox|getFuelLabels|{{PAGENAME}}}}
  | label21  = {{#invoke:Data infobox|getFuelLabels|{{PAGENAME}}}}
Line 19: Line 19:
{{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode}}  
{{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode}}  
  | {{Infobox | subbox = yes
  | {{Infobox | subbox = yes
   | headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; text-align: left;
   | headerstyle  = font-weight: bold; font-size: 18px; text-align: left;
   | labelstyle  = width: 50%; text-align: left;
   | labelstyle  = width: 50%; text-align: left;
   | header20 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|mode_name}}
   | header20 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|mode_name}}

Latest revision as of 23:45, 28 January 2025