Template:Star Data: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
{|style="float:right; margin-right: 10px;"
{|
|style="text-align:right; vertical-align: top; padding-right: 5px;"|''Type:''
|style="text-align:right; vertical-align: top; padding-right: 5px;"|''Type:''
|style="vertical-align: top;"|{{{type|Unknown}}}
|style="vertical-align: top;"|{{{type|Unknown}}}
Line 16: Line 16:
|}<noinclude>
|}<noinclude>
== Documentation ==
== Documentation ==
Any value not given will default to unknown.  The table is included as a floating table that is right-justified, similar to the [[Template:Character Box]] and similar templates.  Text will flow around the table so provide more room for descriptions and other data.
Any value not given will default to unknown.


Template is used as follows:
Template is used as follows:

Revision as of 00:31, 30 December 2021

Type: Unknown
Radius: Unknown
Mass: Unknown
Temperature: Unknown
Luminosity: Unknown

Documentation

Any value not given will default to unknown.

Template is used as follows:

{{Star Data
|type=   Type of Star (Spectral Class / Type)
|radius= Radius / Size of Star
|mass=   Mass of the Star
|temp=   Temperature of the Star
|lum=    Luminosity of the Star
}}

Example

The following code is for an example star:

{{Star Data
|type=K6V Orange Main Sequence Star
|radius={{Exp|5.98|5}} (0.86 of Sol)
|mass={{Exp|1.38|30}} kg (0.70 of Sol)
|temp=3900 K
|lum={{Exp|5.88|25}} (0.15 of Sol)
}}

This code creates:

Type: K6V Orange Main Sequence Star
Radius: 5.98 x 105 (0.86 of Sol)
Mass: 1.38 x 1030 kg (0.70 of Sol)
Temperature: 3900 K
Luminosity: 5.88 x 1025 (0.15 of Sol)