Difference between revisions of "Template:StarData"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
Line 8: Line 8:
 
  |luminosity = float
 
  |luminosity = float
 
  |safe_distance = float
 
  |safe_distance = float
 +
|habit_zone_inner = float
 +
|habit_zone_outer = float
 
  |category = String
 
  |category = String
 
}}
 
}}
Line 34: Line 36:
 
</pre>
 
</pre>
  
{|
+
{| class="wikitable"
! Type !! Mass (MSol) !! Diameter (AU) !! Temperature (K) !! Luminosity (LSol) !! Min Safe Distance (AU) !! Category
+
! Type !! Mass (M<sub>sol</sub>) !! Diameter (AU) !! Surface Temperature (K) !! Luminosity (L<sub>sol</sub>) !! Min Safe Distance (AU) !! Habitable Zone (AU) !! Category  
 +
! Habitable Zone Orbit
 +
! Jump shadow (AU)
 +
! Jump shadow (orbit)
 +
! M-Drive limit (AU)
 +
! M-Drive limit (orbit)
 
|-</noinclude>
 
|-</noinclude>
| {{{type}}} || {{{mass}}} || {{{diameter}}} || {{{temperature min}}} - {{{temperature max}}} || {{{luminosity}}} || {{{safe distance}}} || {{{category}}}
+
| {{{type}}} || {{{mass}}} || {{{diameter}}} || {{{temperature min}}} - {{{temperature max}}} || {{{luminosity}}} || {{{safe distance}}} || {{{habit zone inner}}} - {{{habit zone outer}}} || {{{category}}}
 +
| {{AU to Orbit|{{#expr:({{{habit zone inner|0}}}+{{{habit zone outer|0}}}/2) }} }}
 +
| {{#expr:{{{diameter|0}}} * 100}}
 +
| {{AU to Orbit|{{#expr:{{{diameter|0}}} * 100}} }}
 +
| {{#expr:{{{diameter|0}}} * 1000}}
 +
| {{AU to Orbit|{{#expr:{{{diameter|0}}} * 1000}} }}
 
|-<noinclude>
 
|-<noinclude>
{{StarData|type=M9 VI|mass=0.058|diameter=0.00049|temperature min=1900|temperature max=2400|luminosity=0.00006|safe distance=0.00064|category=Main Sequence}}
+
{{StarData|type=M9 VI|mass=0.058|diameter=0.00049|temperature min=1900|temperature max=2400|luminosity=0.00006|safe distance=0.00064|habit zone inner=0.01|habit zone outer=0.01|category=Main Sequence}}
|}</noinclude><includeonly>
+
</noinclude><includeonly>
 
{{#cargo_store:
 
{{#cargo_store:
 
  _table=StarData
 
  _table=StarData
Line 50: Line 62:
 
  |luminosity = {{{luminosity}}}
 
  |luminosity = {{{luminosity}}}
 
  |safe_distance = {{{safe distance}}}
 
  |safe_distance = {{{safe distance}}}
 +
|habit_zone_inner = {{{habit zone inner}}}
 +
|habit_zone_outer = {{{habit zone outer}}}
 
  |category = {{{category}}}
 
  |category = {{{category}}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 12:08, 8 August 2020

This template defines the table "StarData". View table. This is a data template to enter data about each type of star. This is a cargo template, used to capture data, but not format the results.

Data formatting is done through <other templates>.

See also Template:Primary - gives the color of the star based on the type.
See also Template:StarColor - gives a text of the color of the star on type.
See also Template:AU to Orbit - converts the AU calculations to T5 Orbit numbers.
{{StarData
 |type = Stellar Type (e.g. G2 V)
 |mass = Mass of the star in solar masses (i.e. Sol = 1)
 |diameter = Diameter of the star in AU
 |temperature min = minimum surface temperature in Kelvin
 |temperature max = maximum surface temperature in Kelvin
 |luminosity = Brightness of the star in solar brightness (i.e. Sol = 1)
 |safe distance = Safe travel distance from the star (1000K black body distance in AU)
 |category = Category of the body (Main Sequence, Giant, Supergiant, Stellar Remnant)
}}
Type Mass (Msol) Diameter (AU) Surface Temperature (K) Luminosity (Lsol) Min Safe Distance (AU) Habitable Zone (AU) Category Habitable Zone Orbit Jump shadow (AU) Jump shadow (orbit) M-Drive limit (AU) M-Drive limit (orbit)
{{{type}}} {{{mass}}} {{{diameter}}} {{{temperature min}}} - {{{temperature max}}} {{{luminosity}}} {{{safe distance}}} {{{habit zone inner}}} - {{{habit zone outer}}} {{{category}}}  * 0  * 0  *
M9 VI 0.058 0.00049 1900 - 2400 0.00006 0.00064 0.01 - 0.01 Main Sequence  * 0.049  * 0.49 1