Jump to content

Template:Star Data: Difference between revisions

From Starship Simulator
m Updated
m Updated
Line 5: Line 5:
|-
|-
! scope="row" | Common Name
! scope="row" | Common Name
| {{{common_name|Unknown}}}
| {{{Common Name|Unknown}}}
|-
|-
! scope="row" | System
! scope="row" | System
| {{{system_name|Unknown}}}
| {{{System|Unknown}}}
|-
|-
! scope="row" | Location (Galactic Coordinates)
! scope="row" | Location (Galactic Coordinates)
| {{{location|Unknown}}}
| {{{Location|Unknown}}}
|-
|-
! scope="row" | Object Class
! scope="row" | Object Class
| {{{object_class|Unknown}}}
| {{{Object Class|Unknown}}}
|-
|-
! scope="row" | [[Star types|Spectral Class]]
! scope="row" | [[Spectral Class]]
| {{{spectral_class|Unknown}}}
| {{{Spectral Class|Unknown}}}
|-
|-
! scope="row" | Temperature (Surface)
! scope="row" | Temperature (Surface)
| {{{temp|Unknown}}}
| {{{Temperature|Unknown}}}
|-
|-
! scope="row" | Mass
! scope="row" | Mass
| {{{mass|Unknown}}}
| {{{Mass|Unknown}}}
|-
|-
! scope="row" | Radius
! scope="row" | Radius
| {{{radius|Unknown}}}
| {{{Radius|Unknown}}}
|-
|-
! scope="row" | Luminosity
! scope="row" | Luminosity
| {{{luminosity|Unknown}}}
| {{{Luminosity|Unknown}}}
|-
|-
! scope="row" | [[Habitable Zone]]
! scope="row" | [[Habitable Zone]]
| {{{hab_zone|Unknown}}}
| {{{Habitable Zone|Unknown}}}
|-
|-
! scope="row" | Planets
! scope="row" | Planets
| {{{planets|Unknown}}}
| {{{Planets|Unknown}}}
|-
|-
! scope="row" | Roche Limit
! scope="row" | Roche Limit
| {{{roche_limit|Unknown}}}
| {{{Roche Limit|Unknown}}}
|-
|-
! scope="row" | Hill Radius
! scope="row" | Hill Radius
| {{{hill_radius|Unknown}}}
| {{{Hill Radius|Unknown}}}
|-
|-
! scope="row" | 2000K Dust Sublimation
! scope="row" | 2000K Dust Sublimation
| {{{dust_sublimation|Unknown}}}
| {{{Dust Sublimation|Unknown}}}
|-
|-
! scope="row" | 1200K Lava Line
! scope="row" | 1200K Lava Line
| {{{lava_line|Unknown}}}
| {{{Lava Line|Unknown}}}
|-
|-
! scope="row" | 320K Habitable Zone Start
! scope="row" | 320K Habitable Zone Start
| {{{hab_start|Unknown}}}
| {{{Habitable Zone Start|Unknown}}}
|-
|-
! scope="row" | 230K Habitable Zone End
! scope="row" | 230K Habitable Zone End
| {{{hab_end|Unknown}}}
| {{{Habitable Zone End|Unknown}}}
|-
|-
! scope="row" | 150K Frost Line
! scope="row" | 150K Frost Line
| {{{frost_line|Unknown}}}
| {{{Frost Line|Unknown}}}
|}
|}
<noinclude>
<noinclude>

Revision as of 16:50, 5 July 2025

'
Stellar Data
Common Name Unknown
System Unknown
Location (Galactic Coordinates) Unknown
Object Class Unknown
Spectral Class Unknown
Temperature (Surface) Unknown
Mass Unknown
Radius Unknown
Luminosity Unknown
Habitable Zone Unknown
Planets Unknown
Roche Limit Unknown
Hill Radius Unknown
2000K Dust Sublimation Unknown
1200K Lava Line Unknown
320K Habitable Zone Start Unknown
230K Habitable Zone End Unknown
150K Frost Line Unknown

This template is used to display standardized data tables for individual stars. For other celestial objects (planets, comets, etc.), separate templates may be used.

Use Case

The {{Star_Data}} template is designed to display a consistent block of information for various stellar objects, adapting its layout based on where it's used.

Case 1: Individual Star Pages (e.g., Sol, Sirius)

  • Purpose: To present a compact, floating infobox on the right side of an individual star's page, summarizing its key data.
  • Typical Parameters Used: You'll generally use all relevant parameters to provide as much detail as possible for that specific star. These typically include `title`, `common_name`, `system_name`, `location`, `spectral_class` (or `object_class`), `temp`, `mass`, `radius`, `luminosity`, `hab_zone`, `planets`, and `caption_suffix` for additional context.
  • Styling: No special styling parameters are needed, as the template's defaults will create the desired floating infobox.

Example on a star page (e.g., Sol):

{{Star_Data 
| title = Sol
| common_name = The Sun
| system_name = Sol System
| location = -26670, 0, 56
| spectral_class = G2V
| temp = ~5,778 K
| mass = 1 M☉ (Solar Mass)
| radius = 1 R☉ (Solar Radius)
| luminosity = 1 L☉ (Solar Luminosity)
| hab_zone = ~0.63 AU – ~1.23 AU
| planets = 8 (plus Dwarf Planets)
}}

Case 2: List Pages (e.g., Locations)

  • Purpose: To display a series of full-width, collapsible tables for multiple stars within a list, allowing users to expand them for details.
  • Typical Parameters Used: You'll select the parameters relevant for a summary view on a list. These often include `title`, `location`, `planets`, `spectral_class` (or `object_class`), and the orbital parameters (`roche_limit`, `hill_radius`, `dust_sublimation`, `lava_line`, `hab_start`, `hab_end`, `frost_line`).
  • Styling: You MUST use specific styling parameters to make these tables full-width and collapsible:
| collapsed = mw-collapsible mw-collapsed`
| float = none
| width = 100%
| font_size = 100%` (or adjust as needed to match surrounding text)
  • Remember to use {{clear}} or <br style="clear:both;" /> after each template call on list pages to prevent subsequent content from flowing incorrectly.

Example on a list page (e.g., Locations for Alpha Centauri):

{{Star_Data
| collapsed = mw-collapsible mw-collapsed
| title = Alpha Centauri
| float = none
| width = 100%
| font_size = 100%
| location = -26667,-3,56
| planets = 15
| spectral_class = G / K
| roche_limit = ~1,109,538 KM (Primary G star)
| hill_radius = ~4.58 LY (System)
| dust_sublimation = ~2,859,989 KM (Primary G star)
| lava_line = ~7,944,413 KM (Primary G star)
| hab_start = ~0.67 AU (Primary G star)
| hab_end = ~1.29 AU (Primary G star)
| frost_line = ~3.03 AU (Primary G star)
}}