User:Spacepotato/Template:Starbox 2

This template is used to display information on a star system consisting of 2 stars. The template should be used as shown below. Unused arguments may be omitted. Arguments containing _a give information for the first component. There are corresponding arguments with _b which give information for the second component. For example, radius_b gives the radius of the second component.

There are four possibilities for displaying the right ascension and declination.
 * 1) Coordinates of the center of mass of the system are displayed, and formatting is done by the template.  Use ra_system_h, ra_system_m, ra_system_s, dec_system_d, dec_system_m, and <tt>dec_system_s</tt>.
 * 2) Coordinates of the center of mass of the system are displayed, and formatting is done by the editor.  Use <tt>ra_system</tt> and <tt>dec_system</tt>.  Use of the RA template is recommended for formatting the right ascension, and the DEC template for formatting the declination.
 * 3) Coordinates of each component are displayed, and formatting is done by the template.  Use <tt>ra_a_h</tt>, <tt>ra_a_m</tt>, <tt>ra_a_s</tt>, <tt>ra_b_h</tt>, <tt>ra_b_m</tt>, <tt>ra_b_s</tt>, <tt>dec_a_d</tt>, <tt>dec_a_m</tt>, <tt>dec_a_s</tt>, <tt>dec_b_d</tt>, <tt>dec_b_m</tt>, and <tt>dec_b_s</tt>.
 * 4) Coordinates of each component are displayed, and formatting is done by the editor.  Use <tt>ra_a_1</tt> and <tt>ra_b_1</tt> for the first line of right ascension and <tt>dec_a_1</tt> and <tt>dec_b_1</tt> for the first line of declination.  If a second line is desired (this may narrow the infobox), use <tt>ra_a_2</tt> and <tt>ra_b_2</tt> for the second line of right ascension, and <tt>dec_a_2</tt> and <tt>dec_b_2</tt> for the second line of declination. Use of the RA template is recommended for formatting the right ascension, and the DEC template for formatting the declination.

If the argument <tt>parallax</tt> is provided and <tt>dist_ly</tt> and <tt>dist_pc</tt> are omitted, the distances will be calculated automatically from the parallax (and the parallax error <tt>p_error</tt>, if provided.)