Editing Template:StarData.query

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{#cargo_query:
 
{{#cargo_query:
 
  tables=StarData
 
  tables=StarData
  |fields=type, mass, diameter, temperature_min=TempMin, temperature_max=TempMax, luminosity, safe_distance=SafeDistance, habit_zone_inner=HabitZoneInner, habit_zone_outer=HabitZoneOuter, category,
+
  |fields=type, mass, diameter, temperature_min, temperature_max, luminosity, safe_distance, habit_zone_inner, habit_zone_outer, category,
 
   CONCAT('{{#replace:{{{name|}}}|'|''}}')=name,
 
   CONCAT('{{#replace:{{{name|}}}|'|''}}')=name,
 
   CONCAT('{{#replace:{{{PrimaryName|}}}|'|''}}')=PrimaryName,
 
   CONCAT('{{#replace:{{{PrimaryName|}}}|'|''}}')=PrimaryName,
Line 8: Line 8:
 
  |where=type="{{{primary}}}"
 
  |where=type="{{{primary}}}"
 
  |format=template
 
  |format=template
  |named args=yes
+
  |named_args=yes
 
  |template=StarData.layout
 
  |template=StarData.layout
 
}}<noinclude>
 
}}<noinclude>
 
[[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.
 
  
This template uses the Cargo query processing to query the [[Special:CargoTables/StarData|Star Data Table]].
+
Parameters are:
 
 
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.  
+
* name = Name of the system, defaults to name of the page.  
* PrimaryName = name of the primary
+
* PrimaryName = name of the primary, defaults to "<name> Primary" if not defined
 
* 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, ...

Please note that all contributions to Traveller are considered to be released under the Traveller Copyright (see Copyright for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)