Difference between revisions of "Template:Reference frames/row"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (+cat;)
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly>|-
 
<includeonly>|-
| {{formatnum: {{{1}}}}}×
+
| {{formatnum|{{{1}}}}}×
|{{#if: {{{2}}}|{{#ifeq: {{{3}}}|{{{4}}}|{{#ifeq: {{{5}}}|{{{6}}}|colspan="2"{{!}}}}}}}} {{formatnum: {{{3}}}}} {{#ifeq: {{{3}}}|n/a||{{#ifeq: {{{3}}}|{{ReferenceFrames/Dict|Any}}||m}}}} {{#ifeq: {{{3}}}|{{{5}}}|({{ReferenceFrames/Dict|Above}})}}{{#if: {{{2}}}|{{Booland|{{#ifeq: {{{3}}}|{{{4}}}|1}}|{{#ifeq: {{{5}}}|{{{6}}}|1}}||{{!}}{{!}} {{formatnum: {{{4}}}}} {{#ifeq: {{{4}}}|n/a||{{#ifeq: {{{4}}}|{{ReferenceFrames/Dict|Any}}||m}}}} {{#ifeq: {{{4}}}|{{{6}}}|({{ReferenceFrames/Dict|Above}})}}}}}}</includeonly>
+
| {{Formatnum|{{{2}}}}} {{Dict|m}} {{#ifexpr: {{{2}}} <= 0{{Body data|{{{3}}}|atmospheric height}}|({{Reference frames/dict|Above}})}}</includeonly>
<noinclude>One line of {{Tl|ReferenceFrames}} and it uses {{Tl|ReferenceFrames/Dict}}.
+
<noinclude>One line of {{Tl|Reference frames}} and it uses {{Tl|Reference frames/dict}} and {{Tl|Dict}}.
  
{| class="wikitable"
+
{{Parameter table|parameters=
!#
+
{{Parameter row|1|Factor (number only)}}
!Description
+
{{Parameter row|2|Minimum altitude in meters}}
|-
+
{{Parameter row|3|Name of body}}
|1
+
}}
|Factor (Number only)
+
<!-- The 0 in front of {{Body data|{{{3}}}|atmospheric height}} assures that the right side is never not a number. It's either 0 (when there is no atmospheric height) or a number prefixed by a 0 (e.g. 070000)). -->
|-
 
|2
 
|set if in demo available
 
|-
 
|3
 
|paid altitude
 
|-
 
|4
 
|demo altitude
 
|-
 
|5
 
|paid atmospheric height
 
|-
 
|6
 
|demo atmospheric height
 
|}
 
  
[[Category:Templates|ReferenceFrameRow]]</noinclude>
+
[[Category:Metatemplates]]</noinclude>

Latest revision as of 15:33, 2 June 2019

One line of {{Reference frames}} and it uses {{Reference frames/dict}} and {{Dict}}.

# Optional Description Default
1 No Factor (number only)
2 No Minimum altitude in meters
3 No Name of body