Difference between revisions of "Template:StarData.layout"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
(Created page with "<noinclude> {| class="wikitable" |-</noinclude> ! Star Name !! Hierarchy !! colspan=2|Category !! Mass (Sol) !! Temp (K) !! Luminosity (Sol) |- | style="text-align:center" row...")
 
(7 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
! Star Name !! Hierarchy !! colspan=2|Category !! Mass (Sol) !! Temp (K) !! Luminosity (Sol)
 
! Star Name !! Hierarchy !! colspan=2|Category !! Mass (Sol) !! Temp (K) !! Luminosity (Sol)
 
|-
 
|-
| style="text-align:center" rowspan=6 {{primary|{{{primary}}}}} |'''{{{PrimaryName}}}''' <br> {{{type}}}
+
| rowspan=6 {{primary|{{{type}}}}} |'''{{{PrimaryName}}}''' <p style="text-align:center>{{{type}}}<p>
 
| {{{Hierarchy}}}
 
| {{{Hierarchy}}}
 
| colspan=2| {{{category}}}  
 
| colspan=2| {{{category}}}  
 
| {{{mass}}}
 
| {{{mass}}}
| {{{temperature_min}}} - {{{temperature_max}}}  
+
| {{{TempMin}}} - {{{TempMax}}}  
 
| {{{luminosity}}}
 
| {{{luminosity}}}
 
|-
 
|-
Line 15: Line 15:
 
| '''AU'''  
 
| '''AU'''  
 
|{{{diameter}}}  
 
|{{{diameter}}}  
| {{{safe_distance}}}  
+
| {{{SafeDistance}}}  
| {{{habit_zone_inner}}} - {{{habit_zone_outer}}}  
+
| {{{HabitZoneInner}}} - {{{HabitZoneOuter}}}  
 
| {{#expr:{{{diameter|0}}} * 100}}  
 
| {{#expr:{{{diameter|0}}} * 100}}  
 
| {{#expr:{{{diameter|0}}} * 1000}}  
 
| {{#expr:{{{diameter|0}}} * 1000}}  
Line 22: Line 22:
 
| '''Orbit #'''  
 
| '''Orbit #'''  
 
| {{AU to Orbit|{{{diameter|0}}} }}
 
| {{AU to Orbit|{{{diameter|0}}} }}
| {{AU to Orbit|{{{safe_distance|0}}} }}
+
| {{AU to Orbit|{{{SafeDistance|0}}} }}
| {{AU to Orbit|{{#expr:({{{habit zone inner|0}}}+{{{habit zone outer|0}}})/2 }} }}
+
| {{AU to Orbit|{{#expr:({{{HabitZoneInner|0}}}+{{{HabitZoneOuter|0}}})/2 }} }}
 
| {{AU to Orbit|{{#expr:{{{diameter|0}}} * 100}} }}
 
| {{AU to Orbit|{{#expr:{{{diameter|0}}} * 100}} }}
 
| {{AU to Orbit|{{#expr:{{{diameter|0}}} * 1000}} }}
 
| {{AU to Orbit|{{#expr:{{{diameter|0}}} * 1000}} }}
Line 29: Line 29:
 
! colspan=6|Remarks  
 
! colspan=6|Remarks  
 
|-
 
|-
| colspan=6| {{{PrimaryNotes}}}<noinclude>
+
| colspan=6| {{{PrimaryNotes|&nbsp;}}}<noinclude>
 
|}
 
|}
 
[[Category: Cargo Templates|StarData]]
 
[[Category: Cargo Templates|StarData]]
[[Category: Infobox|StellarData]]
+
This template is used by the [[Template:StarData.query]] to query and format data from the [[Special:CargoTables/StarData|Star Data Table]]. This generates a section of table layout, intended to be used as part of the [[Template:MonostellarSystem]] and related templates to display interesting information about the stars in each system.
{{StarData.layout/doc}}
+
 
 +
This template is not intended to be use outside of that context, and editing the template may cause the whole chain of templates to break. Please edit with caution.
 
<noinclude>
 
<noinclude>

Revision as of 16:44, 22 August 2020

Star Name Hierarchy Category Mass (Sol) Temp (K) Luminosity (Sol)
{{{PrimaryName}}}

{{{type}}}

{{{Hierarchy}}} {{{category}}} {{{mass}}} {{{TempMin}}} - {{{TempMax}}} {{{luminosity}}}
Unit Diameter Min Distance Hab Zone Jump Shadow M-Drive Limit
AU {{{diameter}}} {{{SafeDistance}}} {{{HabitZoneInner}}} - {{{HabitZoneOuter}}} 0 0
Orbit #  *  *  *  *  *
Remarks
 

This template is used by the Template:StarData.query to query and format data from the Star Data Table. This generates a section of table layout, intended to be used as part of the Template:MonostellarSystem and related templates to display interesting information about the stars in each system.

This template is not intended to be use outside of that context, and editing the template may cause the whole chain of templates to break. Please edit with caution.