Difference between revisions of "Template:StarData.query"
Jump to navigation
Jump to search
(Created page with "{{#cargo_query: tables=StarData |fields=type, mass, diameter, temperature_min, temperature_max, luminosity, safe_distance, habit_zone_inner, habit_zone_outer, category, C...") |
|||
(3 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 8: | Line 8: | ||
|where=type="{{{primary}}}" | |where=type="{{{primary}}}" | ||
|format=template | |format=template | ||
− | | | + | |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. | ||
− | 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 | + | * name = Name of the system. |
− | * PrimaryName = name of the primary | + | * 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 12: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, ...