Difference between revisions of "Template:StarData.query"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#cargo_query:
 
{{#cargo_query:
 
  tables=StarData
 
  tables=StarData
  |fields=type, mass, diameter, temperature_min, temperature_max, luminosity, safe_distance, habit_zone_inner, habit_zone_outer, category,
+
  |fields=type, mass, diameter, temperature_min=TempMin, temperature_max=TempMax, luminosity, safe_distance=SafeDistance, habit_zone_inner=HabitZoneInner, habit_zone_outer=HabitZoneOuter, category,
 
   CONCAT('{{#replace:{{{name|}}}|'|''}}')=name,
 
   CONCAT('{{#replace:{{{name|}}}|'|''}}')=name,
 
   CONCAT('{{#replace:{{{PrimaryName|}}}|'|''}}')=PrimaryName,
 
   CONCAT('{{#replace:{{{PrimaryName|}}}|'|''}}')=PrimaryName,
Line 13: Line 13:
 
[[Category: Cargo Templates|StellarData]]
 
[[Category: Cargo Templates|StellarData]]
  
 +
This template is used to display the data for one star using the [[Template:StarData.layout]] to create a set of rows in a table. The StarData.layout is not a complete navigation box. It is intended to be used with the [[Template:MonostellarSystem]] and other star information navigation boxes.
  
Parameters are:
+
This template uses the Cargo query processing to query the [[Special:CargoTables/StarData|Star Data Table]].
 +
 
 +
Parameters to this template are:
  
 
* primary = Stellar classification of the primary (e.g. G2 V)
 
* primary = Stellar classification of the primary (e.g. G2 V)
* name = Name of the system, defaults to name of the page.  
+
* name = Name of the system.  
* PrimaryName = name of the primary, defaults to "<name> Primary" if not defined
+
* PrimaryName = name of the primary
 
* PrimaryNotes = Notes or remarks about the primary (optional)
 
* PrimaryNotes = Notes or remarks about the primary (optional)
 
* Hierarchy = Order of the stars in the system: Primary, Secondary, Tertiary, ...
 
* Hierarchy = Order of the stars in the system: Primary, Secondary, Tertiary, ...

Latest revision as of 16:41, 22 August 2020

No results

This template is used to display the data for one star using the Template:StarData.layout to create a set of rows in a table. The StarData.layout is not a complete navigation box. It is intended to be used with the Template:MonostellarSystem and other star information navigation boxes.

This template uses the Cargo query processing to query the Star Data Table.

Parameters to this template are:

  • primary = Stellar classification of the primary (e.g. G2 V)
  • name = Name of the system.
  • PrimaryName = name of the primary
  • PrimaryNotes = Notes or remarks about the primary (optional)
  • Hierarchy = Order of the stars in the system: Primary, Secondary, Tertiary, ...