Difference between revisions of "Template:Reference frames/row"
From Kerbal Space Program Wiki
m (!negate condition to show demo data;) |
m (*if no atmospheric height is returned assume 0 meters;) |
||
Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>|- | ||
| {{formatnum|{{{1}}}}}× | | {{formatnum|{{{1}}}}}× | ||
− | | {{#if: {{{3|}}}|{{#ifeq: {{{2}}}|{{{3}}}|colspan="2"{{!}} }} }} {{Formatnum|{{{2}}} }} {{Dict|m}} {{#ifexpr: {{{2}}} <= {{Body data|{{{4}}}|atmospheric height}}|({{ReferenceFrame/Dict|Above}})}} {{Booland|{{{3|}}}|{{#ifeq: {{{2}}}|{{{3}}}|1}}|| {{!}}{{!}} {{Formatnum|{{{3}}} }} {{Dict|m}} {{#ifexpr: {{{3}}} <= {{Body data|{{{4}}}|atmospheric height}}|({{ReferenceFrame/Dict|Above}})}} }}</includeonly> | + | | {{#if: {{{3|}}}|{{#ifeq: {{{2}}}|{{{3}}}|colspan="2"{{!}} }} }} {{Formatnum|{{{2}}} }} {{Dict|m}} {{#ifexpr: {{{2}}} <= 0{{Body data|{{{4}}}|atmospheric height}}|({{ReferenceFrame/Dict|Above}})}} {{Booland|{{{3|}}}|{{#ifeq: {{{2}}}|{{{3}}}|1}}|| {{!}}{{!}} {{Formatnum|{{{3}}} }} {{Dict|m}} {{#ifexpr: {{{3}}} <= 0{{Body data|{{{4}}}|atmospheric height}}|({{ReferenceFrame/Dict|Above}})}} }}</includeonly> |
<noinclude>One line of {{Tl|ReferenceFrames}} and it uses {{Tl|ReferenceFrames/Dict}} and {{Tl|Dict}}. | <noinclude>One line of {{Tl|ReferenceFrames}} and it uses {{Tl|ReferenceFrames/Dict}} and {{Tl|Dict}}. | ||
Line 9: | Line 9: | ||
{{Parameter row|3|Minimum altitude in most recent demo version in meters}} | {{Parameter row|3|Minimum altitude in most recent demo version in meters}} | ||
{{Parameter row|4|Name of body}} | {{Parameter row|4|Name of body}} | ||
− | }} | + | }}<!-- |
+ | |||
+ | The 0 in front of {{Body data|{{{4}}}|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)).--> | ||
[[Category:Metatemplates]]</noinclude> | [[Category:Metatemplates]]</noinclude> |
Revision as of 16:06, 22 May 2015
One line of {{ReferenceFrames}} and it uses {{ReferenceFrames/Dict}} and {{Dict}}.
# | Optional | Description | Default |
---|---|---|---|
1 | No | Factor (number only) | |
2 | No | Minimum altitude in most recent paid version in meters | |
3 | No | Minimum altitude in most recent demo version in meters | |
4 | No | Name of body |