Template:Star Data: Difference between revisions
Appearance
Ayjayaredii (talk | contribs) m Updated |
Ayjayaredii (talk | contribs) m Updated |
||
| Line 59: | Line 59: | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
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 '''<nowiki>{{Star_Data}}</nowiki>''' 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]]): | |||
<nowiki>{{Star_Data </nowiki> | |||
| 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) | |||
<nowiki>}}</nowiki> | |||
=== 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 '''<nowiki>{{clear}} or <br style="clear:both;" /></nowiki>''' 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]]): | |||
<nowiki>{{Star_Data</nowiki> | |||
| 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) | |||
<nowiki>}}</nowiki> | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 16:42, 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)
}}