Difference between revisions of "Template:StarData.layout"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users 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)
 
|-
 
|-
| rowspan=6 {{primary|{{{type}}}}} |'''{{{PrimaryName}}}''' <p style="text-align:center>{{{type}}}<p>
+
| rowspan={{#if: {{{PrimaryNotes|}}}|6|4}} {{primary|{{{type}}}}} |'''{{{PrimaryName}}}''' <p style="text-align:center>{{{type}}}<p>
 
| {{{Hierarchy}}}
 
| {{{Hierarchy}}}
 
| colspan=2| {{{category}}}  
 
| colspan=2| {{{category}}}  
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}} }}
|-
+
{{#if: {{{PrimaryNotes|}}}|
! colspan=6|Remarks  
+
{{!}}-
|-
+
! colspan=6{{!}}Remarks  
| colspan=6| {{{PrimaryNotes}}}<noinclude>
+
{{!}}-
 +
{{!}} colspan=6{{!}} {{{PrimaryNotes}}} }}<noinclude>
 
|}
 
|}
 
[[Category: Cargo Templates|StarData]]
 
[[Category: Cargo Templates|StarData]]
{{StarData.layout/doc}}
+
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.
 +
 
 +
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>

Latest revision as of 19:27, 1 August 2021

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 #  *  *  *  *  *

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.