Template talk:Starbox begin#Template-protected edit request on 3 April 2022

{{Permanently protected}}

{{Talk header}}

{{WikiProject banner shell|

{{WikiProject Astronomy|object=yes}}

}}

Decimal exponent units for log g

Would it be necessary to include dex as an alternate unit for log g? This unit is sometimes used (e.g. Tannock et al 2103.01990) and it would be useful to have a conversion between dex and cgs. Nrco0e (talk · contribs) 18:32, 12 March 2021 (UTC)

:dex isn't a unit as such. It is an abbreviation of sorts for decimal exponent, indicating that the number is the decimal exponent of the actual value. Looked at another way it is the logarithm of the value. Technically, such numbers are unitless but they are often followed by an indicator of the system of units used for the original value, since the logarithm of a value in light years is obviously different fro the logarithm of a number of miles. log(g) for the surface gravity of a star is almost universally the logarithm of the cgs value, ie. in cm/s2, perhaps not the units you'd expect. This usage is explained at surface gravity. dex units in general are not well-explained anywhere I could find in WP. There is decimal exponent which redirects to common logarithm but it doesn't say anything about "dex" exactly. There is dex, but that dab page doesn't say anything either. Lithopsian (talk) 21:02, 12 March 2021 (UTC)

Template-protected edit request on 9 July 2021

{{edit template-protected|Template:Starbox catalog|answered=yes}}

Please remove the interlanguage link fr:Modèle:Astrobox catalogue in Template:Starbox catalog. It points to a deleted target. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 09:43, 9 July 2021 (UTC)

:{{done}} Primefac (talk) 10:05, 9 July 2021 (UTC)

{{-}}

Template-protected edit request on 15 July 2021

{{edit template-protected|Template:Starbox detail|answered=yes}}

In Template:Starbox detail, please remove the two interlanguage links at the bottom of the template. fr:Modèle:Starbox détail points to a deleted template and es:Plantilla:Starbox detail redirects to a template with different function that is linked to the appropriate English template by wikidata. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 10:49, 15 July 2021 (UTC)

:{{done}} Terasail[✉️] 11:37, 15 July 2021 (UTC)

:{{to|ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ}} also removed from the template documentation page. And thank you for the good catch! P.I. Ellsworth  ed. put'r there 11:48, 15 July 2021 (UTC)

Template-protected edit request on 31 August 2021

{{edit template-protected|answered=yes}}

The {{t|starbox reference}} template generates urls to several common astronomical databases. It uses the now virtually-obsolete http:// prefixes. Although many websites automatically redirect requests to the secure https:// equivalent, some, including Simbad do not. This can cause warnings in some browsers, and the websi page may not even display. Please change each instance of "http://" to "https://". Lithopsian (talk) 18:35, 31 August 2021 (UTC)

:{{done}} Primefac (talk) 18:40, 31 August 2021 (UTC)

Template-protected edit request on 15 January 2022

{{edit template-protected|Template:Starbox astrometry|answered=yes}}

For {{tl|Starbox astrometry}}, the documented 'pm_footnote2' parameter, which references the second set of proper motion rows, has not been implemented. It should update the 'prop_mo_ra2' and 'prop_mo_dec2' rows in the same manner as the 'pm_footnote' parameter updates the 'prop_mo_ra' and 'prop_mo_dec' rows. Thank you. Praemonitus (talk) 22:55, 15 January 2022 (UTC) Praemonitus

:{{done}} Primefac (talk) 10:05, 16 January 2022 (UTC)

Exoplanet Encyclopedia

There's a problem with Exoplanet Encyclopedia reference. I guess they changed the structure of the website at some point. Unfortunately, they no longer have pages for the stars, but for the planets. For example, HR 8799d is http://exoplanet.eu/catalog/hr_8799_d/ (note also that they are still using http:// not https://). I'm not sure the best way to deal with this. I guess this reference should be removed from the star infobox and added to the planet ones instead. Although this is a bit awkward since the other references are all for star. AstroMark (talk) 20:23, 21 January 2022 (UTC)

Template-protected edit request on 1 April 2022

{{edit template-protected|Template:Starbox astrometry|answered=yes}}

Replace the current version of Template:Starbox astrometry (that talk page redirects here) with the current contents of User:RandomCanadian/sandbox2. This adds a {{code|dist_ref}} parameter to add a reference for the distance at the appropriate place ([https://en.wikipedia.org/w/index.php?title=User%3ARandomCanadian%2Fsandbox2&type=revision&diff=1080545054&oldid=1080544634 diff] of the difference). Cheers, RandomCanadian (talk / contribs) 22:04, 1 April 2022 (UTC)

  • The parameter can also be called {{code|dist_footnote}} if you want consistency with the other ones. RandomCanadian (talk / contribs) 22:12, 1 April 2022 (UTC)
  • See that {{tl|Starbox astrometry}} has {{tl|Astro talk}} at the TOP, and don't see discussion about this at WT:WikiProject Astronomical objects. Is it an uncontroversial edit? or should it be discussed as has been requested by the WikiProject? P.I. Ellsworth - ed. put'r there 11:42, 2 April 2022 (UTC)
  • {{ping|Paine Ellsworth}} Adding an easy way to add a reference in the proper spot (see the example at Earendel, where the ref is oddly between the measurement and the unit) is not controversial; and seeing that the template already has support for proper footnotes for other values ({{code|pm_footnote}} and {{code|parallax_footnote}}), it would make absolute-totally-100%-non-controversial-sense to include such a parameter for the distance too. RandomCanadian (talk / contribs) 14:54, 2 April 2022 (UTC)
  • Okay, and {{done|done}}. P.I. Ellsworth - ed. put'r there 16:19, 2 April 2022 (UTC)

:References between the numeric value and the units is a known issue throughout the starboxes, but consistency is probably more valuable than trying to make it "right" for just one case - see pm_footnote and parallax_footnote which intentionally place the reference before the units. I have fixed the documentation page, there is no dist_footnote2. Lithopsian (talk) 13:06, 3 April 2022 (UTC)

::I've looked at the other starbox templates, and none of them seem to be having the refs at the wrong place. If it's a known issue with this one, then it's a relatively easy fix, and if the footnote parameters are explicitly present, they might as well be at the right place - see [https://en.wikipedia.org/w/index.php?title=User%3ARandomCanadian%2Fsandbox2&type=revision&diff=1080822096&oldid=1080552587 diff]. {{ping|Paine Ellsworth}} (or somebody else if they notice this first): same routine; replace current version of Template:Starbox astrometry with contents of my sandbox (i.e. diff linked above). Cheers, RandomCanadian (talk / contribs) 17:34, 3 April 2022 (UTC)

:::{{done}}. P.I. Ellsworth - ed. put'r there 19:27, 3 April 2022 (UTC)

:::Take a look at any star article instead of code-reading, and maybe we can stop making piecemeal changes that aren't really improving these templates. Try Sirius, it has a fairly complete set of fields. At the top of the template, it says "Before making modifications to this template, please discuss the proposed changes on the WikiProject Astronomical objects talk page. Thank you.", that's so that these questions can be ironed out before they hit thousands of star articles. If you do that, you *will* get feedback, but that's a good thing, right? Lithopsian (talk) 21:08, 3 April 2022 (UTC)

::::{{ping|Lithopsian}} As regards the astrometry box, Sirius was an instance were the existing parameter was unused when it should have been used... Now it shows that an additional parameter might be necessary for radial velocity (and really, that's not something complex to add - you literally add {{code|{{{whatever_footnote|}}}}} at the appropriate place after the unit). The rest shows this was just horribly designed to start with - it might be far simpler to just put the unit abbreviations in with the description (i.e. have "Temperature (K) // [whatever][ref]" instead of the current "Temperature // [whatever][ref](K)". RandomCanadian (talk / contribs) 21:17, 3 April 2022 (UTC) i.e. [https://en.wikipedia.org/w/index.php?title=User%3ARandomCanadian%2Fsandbox3&type=revision&diff=1080854650&oldid=1080854471 this] what I'm thinking about. RandomCanadian (talk / contribs) 21:27, 3 April 2022 (UTC)

{{od}}

Have notified project members of this and the next (below) discussions. P.I. Ellsworth - ed. put'r there 00:00, 4 April 2022 (UTC)

:Horribly-designed or not, it is what we have and thousands of articles used it. Any wholesale re-design would likely need an associated bot to edit the articles and nobody has been ready to take that on. There was an attempt a few years back to rewrite the multiple starboxes along the lines of a simplified infobox, but after consideration of all the edge cases (eg. multiple instances of one starbox template such as {{t|starbox detail}} or {{t|starbox orbit}} within the starbox begin/end nest) and a lack of agreement about which fields could be dropped, it all ran into the long grass. There are some instances where multiple values (eg. for a binary or variable star) are placed in one starbox field, with all except the last one having to include the units, and some instances of fields that need units but where the template doesn't provide them (eg. period_unitless in {{t|starbox orbit}}). Very messy - take a look at Eta Carinae for examples, but like I said: if you're not going to fix them all then making some of them different isn't really helping. In related news, the {{t|odlist}} template intended to be used inside {{t|starbox reference}} has problems with placing references after the commas, although it is relatively uncommon to have references nested inside the template. See Antares for an example. Lithopsian (talk) 11:08, 4 April 2022 (UTC)

::Redesigning starbox detail to avoid the ref issue and have minimal changes was a rather minor affair (which would not require a bot at this time), see User:RandomCanadian/sandbox3 (the only parameter that's still tricky is the age, but for consistency I guess I could do like the others). RandomCanadian (talk / contribs) 17:58, 4 April 2022 (UTC)

::{{re|Lithopsian}} {{tq|... nobody has been ready to take that on}} - false, as a merger/replacement with {{t|infobox star}} was rejected a few years back, despite a successful merger of the planetbox begin series into {{t|infobox planet}} at a similar time. I am more than capable (and willing) to have my bot perform the merger, but no one wants it (apparently) despite starbox's many shortcomings. Primefac (talk) 07:38, 5 April 2022 (UTC)

:::If you can make wholesale improvements, then propose the new design at Wikipedia talk:WikiProject Astronomical objects. I can see some issues ahead with that layout, for example in {{t|starbox orbit}}, but with a bit of thought maybe it can be all worked through. Better yet if it doesn't need a bot. I did think that we could do without a bot by making the existing templates become wrappers for a new set of starboxes, but that's probably going to be more trouble in the long run. Lithopsian (talk) 14:17, 5 April 2022 (UTC)

Template-protected edit request on 3 April 2022

{{edit template-protected|Template:Starbox observe|answered=yes}}

This template uses tags which reduces font size in already-reduced infobox text, not allowed per MOS:SMALL. MB 18:42, 3 April 2022 (UTC) MB 18:42, 3 April 2022 (UTC)

:{{done}}. {{to|MB}} there are no "small" tags in this template, but this is a centralized talk page for other templates. There were ten sets of "small" tags in the {{tl|Starbox astrometry}} template, so I removed them. Did you mean that template? or did you mean a different template? P.I. Ellsworth - ed. put'r there 19:34, 3 April 2022 (UTC)

::{{u|Paine Ellsworth}}, actually, I got here from {{tl|Starbox observe}} which has them. MB 19:47, 3 April 2022 (UTC)

:::That's what I thought. These are among several related templates that apparently use tables to splice together. I'd like to hold off changing any others so we can perhaps hear from other involved editors as to whether or not these templates should continue to violate MOS:SMALL, and perhaps why they do in the first place? P.I. Ellsworth - ed. put'r there 19:56, 3 April 2022 (UTC)

:::{{to|RandomCanadian|Lithopsian|AstroMark|ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ|Nrco0e|Assambrew|Praemonitus}} thought to ask for guidance. P.I. Ellsworth - ed. put'r there 20:18, 3 April 2022 (UTC)

:::: I don't think it's going to harm the layout to remove those particular small tags, but you could remove the bold face to balance it out. Praemonitus (talk) 00:29, 4 April 2022 (UTC)

:I don't know why they are like that, but I do note that the majority of them are "symbols" such as Ω for the longitude of the ascending node of an orbit, and as such are bold and less tiny than they might otherwise be. I hadn't really noticed them being small, but my browser is configured with a hard lower limit on font sizes and that was nudging them up slightly. Again, there is a project page that will get much more attention than posting directly here. Lithopsian (talk) 21:16, 3 April 2022 (UTC)

::Comment - I have my browser set so I can fit as much text on the screen as I can comfortably read. I can make out normal infobox (85%) text just fine, but this smaller text is a problem. I think there would need to be a very good reason (which I can't imagine) to ignore MOS:SMALL here. MB 22:22, 3 April 2022 (UTC)

Template-protected edit request on 14 June 2022

{{edit template-protected|Template:Starbox detail|answered=yes}}

The template has a field called metal2_fe, equivalent to metal_fe but for the second component. This is inconsistent with the naming of the other fields, for example rotational_velocity2 or age_myr2. Some articles have used metal_fe2 and no entry appears in the infobox. Some articles may well still be doing this. A field called metal_fe2 should be added, with identical output to metal2_fe. I don't think it needs to be too clever about handling edge cases where both fields are used, but only one line should appear in the infobox even if both fields have values (or maybe two since a visible indication of a mistake will get fixed?). Lithopsian (talk) 15:33, 14 June 2022 (UTC)

  • Support: I agree. This is an easy field for editors to get wrong, so it should allow for consistency. Praemonitus (talk) 15:49, 14 June 2022 (UTC)

:{{done}} Primefac (talk) 10:20, 15 June 2022 (UTC)

::{{ping|Primefac}} unfortunately the 'metal_fe2' entry now shows up when it hasn't been assigned a value. For example, see the infobox for Epsilon Virginis. Praemonitus (talk) 12:39, 15 June 2022 (UTC)

:::{{fixed}}. Primefac (talk) 13:05, 15 June 2022 (UTC)

Precision of the distance fields

In the Gaia era, we are getting parallaxes sufficiently accurate that they stretch the number of significant figures used for the calculated distances in the starbox, or at least the margins of error on the distances. See TRAPPIST-1 for one case where the margin of error is barely 0.01 parsecs. There has been an attempt to hardcode the distances to values calculated from the parallax which I think was inspired by a desire to have three decimal places instead of two. Obviously this would only be applicable to the closest stars. Proxima Centauri may be the most extreme case, where the distance is currently showing as 1.30197 ± 0 pc, which isn't really giving the whole story. I'm not sure why it is getting rounded to straight zero, since I calculate the margin of error as 0.0001 pc and the margin of error on the light years is shown to four decimal places. Does it make sense to nudge the number of significant figures up by about one place in those cases where the parallax accuracy merits it? Lithopsian (talk) 14:35, 20 June 2022 (UTC)

: I don't see any significant space constraints on the field, so I'd say yes. Praemonitus (talk) 16:40, 20 June 2022 (UTC)

Starbox observe for component of unknown visual apparent magnitude

Contrary to the documentation, omitting the visual magnitude in Template:starbox observe does not omit the row in the table, instead leaving a row with the parameter name. For Template:Starbox observe 2s, an example can be seen below for a binary star where the visual magnitude of one component has not been reported:

{{collapse top|From GSC 03549-02811, minus references}}

{{starbox begin|name=Bugged output}}

|- "text-align: center;"

! style="text-align: center; background-color: #FFFFC0;" colspan="2" | Observation data
{{#ifeq:J2000.0|J2000.0 (ICRS)|Epoch J2000.0      Equinox J2000.0 (ICRS)| Epoch J2000.0      Equinox J2000.0}}

|-

| Constellation

| Draco

|- style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Pronunciation

{{!}} {{{pronounce}}}

}}

|-

| colspan="2" style="text-align: center" | A

|-

| {{nowrap|Right ascension}}

| {{RA|19|07|14.0376}}

|-

| {{nowrap|Declination}}

| {{DEC|+49|18|59.091}}

|-

| {{nowrap|Apparent magnitude (V)}}

| 11.41

|-

| colspan="2" style="text-align: center" | B

|-

| {{nowrap|Right ascension}}

| ~{{RA|19|07|14}}

|-

| {{nowrap|Declination}}

| ~{{DEC|+49|18|59}}

|-

| {{nowrap|Apparent magnitude (V)}}

| {{{appmag_v2}}}

{{starbox end}}

{{starbox begin|name=Expected result}}

|- "text-align: center;"

! style="text-align: center; background-color: #FFFFC0;" colspan="2" | Observation data
{{#ifeq:J2000.0|J2000.0 (ICRS)|Epoch J2000.0      Equinox J2000.0 (ICRS)| Epoch J2000.0      Equinox J2000.0}}

|-

| Constellation

| Draco

|- style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Pronunciation

{{!}} {{{pronounce}}}

}}

|-

| colspan="2" style="text-align: center" | A

|-

| {{nowrap|Right ascension}}

| {{RA|19|07|14.0376}}

|-

| {{nowrap|Declination}}

| {{DEC|+49|18|59.091}}

|-

| {{nowrap|Apparent magnitude (V)}}

| 11.41

|-

| colspan="2" style="text-align: center" | B

|-

| {{nowrap|Right ascension}}

| ~{{RA|19|07|14}}

|-

| {{nowrap|Declination}}

| ~{{DEC|+49|18|59}}

{{starbox end}}

{{collapse bottom}} –LaundryPizza03 (d) 09:22, 21 January 2023 (UTC)

:This is only the case for appmag_v1 and appmag_v2 in {{t|Starbox observe 2s}}. It works fine for appmag_v in {{t|Starbox observe}}. Either omitting the appmag_v field or leaving it empty will cause the row not to display at all, as is standard for almost every field in the starbox templates. In {{t|starbox observe 2s}} and {{t|starbox observe 3s}}, leaving the appmag_v fields empty causes the row to display with no value, while omitting it completely causes the row to display as shown in the example. I'll have a go at fixing these. Lithopsian (talk) 13:51, 22 January 2023 (UTC)

::I've edited both {{t|starbox observe 2s}} and {{t|starbox observe 3s}}. They should be working fine now. Shout out if you see any problems. Lithopsian (talk) 14:40, 22 January 2023 (UTC)

Exoplanet encyclopaedia (EPE) not working

The url generated for the EPE field is https://exoplanet.eu/..., but this fails. I think it is because there is no secure server for that site. The same url without https:// seems OK and gets directed to a non-secure page. Lithopsian (talk) 14:06, 23 January 2023 (UTC)

Request for additional parameters to Starbox orbit and detail

I would like to add the following:

For Starbox orbit:

  • Epoch (not periastron epoch)
  • Longitude of perihelion ϖ (I see that researchers don't really use arg of periastron and ascending node separate like in [https://iopscience.iop.org/article/10.3847/2041-8213/aaad06/pdf PSR J1946+2052])
  • Rate of periastron advance \dot \bar \omega (apsidal precession, significant for binary neutron stars)

For Starbox detail:

  • Spin-down period \dot P (spin period derivative commonly expressed in seconds per second; essential for neutron stars)
  • Surface magnetic field B (commonly in Gauss units, useful for stellar remnants such as white dwarfs and neutron stars)
  • Characteristic age (age since formation from supernova, used in neutron stars_

Nrco0e (talk) 05:47, 4 March 2023 (UTC)

Broader redesign of apparent-magnitude and color-index entries

It seems like activity on #How to make the template not overlink has stagnated. The proposed stop-gap work-around at TRAPPIST-1 breaks popups.

I would propose taking a step back and looking at the wider design rather than just the over-linking. Currently there are a bunch of infobox rows that have nearly the same tag term and a parenthetical specific detail. I think it would be cleaner to follow the design of {{tl|Infobox settlement}} and have a single pseudo-header for the tag (with link) and then subsequent rows only need the specific detail. That means there is always exactly one link (with no pre-parsing/wrapper code) and it's also simpler to read and recognize the related set of data.

style="vertical-align:top;"|{{Starbox begin|name=TRAPPIST-1{{br}}(current implementation)}}
style="background-color: #FFFFC0; text-align: center;" colspan="2"| {{#if:||Characteristics}}
{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component}}}

}}

{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component1}}}

}}

style="vertical-align:top"

{{#if:Main sequence|

! style="text-align:left" {{!}} Evolutionary stage

{{!}} Main sequence

}}

style="vertical-align:top"

{{#if:M8V|

! style="text-align:left" {{!}} Spectral type

{{!}} M8V

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_1}}}

}}

style="vertical-align:top"

{{#if:R|

! style="text-align:left" {{!}} Apparent magnitude (R)

{{!}} {{val|16.466|0.065}}

}}

style="vertical-align:top"

{{#if:I|

! style="text-align:left" {{!}} Apparent magnitude (I)

{{!}} {{val|14.024|0.115}}

}}

style="vertical-align:top"

{{#if:J|

! style="text-align:left" {{!}} Apparent magnitude (J)

{{!}} {{val|11.354|0.022}}

}}

style="vertical-align:top"

{{#if:H|

! style="text-align:left" {{!}} Apparent magnitude (H)

{{!}} {{val|10.718|0.021}}

}}

style="vertical-align:top"

{{#if:K|

! style="text-align:left" {{!}} Apparent magnitude (K)

{{!}} {{val|10.296|0.023}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_7}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_8}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} U−B {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{u-b}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} B−V {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{b-v}}}

}}

style="vertical-align:top"

{{#if:2.332|

! style="text-align:left" {{!}} V−R {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} 2.332

}}

style="vertical-align:top"

{{#if:2.442|

! style="text-align:left" {{!}} R−I {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} 2.442

}}

style="vertical-align:top"

{{#if:0.636|

! style="text-align:left" {{!}} J−H {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} 0.636

}}

style="vertical-align:top"

{{#if:1.058|

! style="text-align:left" {{!}} J−K {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} 1.058

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Variable type

{{!}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Evolutionary stage

{{!}} {{{type2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Spectral type

{{!}} {{{class2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_1_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_2_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_3_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_4_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_5_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_6_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_7_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_8_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} U−B {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{u-b2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} B−V {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{b-v2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} V−R {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{v-r2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} R−I {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{r-i2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} J−H {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{j-h2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} J−K {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{j-k2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Variable type

{{!}} {{{variable2}}}

}}

{{Starbox end}}

|style="vertical-align:top;"|{{Starbox begin|name=TRAPPIST-1{{br}}(sub-grouping mockup)}}

style="background-color: #FFFFC0; text-align: center;" colspan="2"| {{#if:||Characteristics}}
{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component}}}

}}

{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component1}}}

}}

style="vertical-align:top"

{{#if:Main sequence|

! style="text-align:left" {{!}} Evolutionary stage

{{!}} Main sequence

}}

style="vertical-align:top"

{{#if:M8V|

! style="text-align:left" {{!}} Spectral type

{{!}} M8V

}}

style="vertical-align:top"

! style="text-align:left; border-top: 1px solid #a2a9b1;" colspan=2 {{!}} Apparent magnitude

style="vertical-align:top"

{{#if:R|

! style="text-align:left" {{!}} • R

{{!}} {{val|16.466|0.065}}

}}

style="vertical-align:top"

{{#if:I|

! style="text-align:left" {{!}} • I

{{!}} {{val|14.024|0.115}}

}}

style="vertical-align:top"

{{#if:J|

! style="text-align:left" {{!}} • J

{{!}} {{val|11.354|0.022}}

}}

style="vertical-align:top"

{{#if:H|

! style="text-align:left" {{!}} • H

{{!}} {{val|10.718|0.021}}

}}

style="vertical-align:top"

{{#if:K|

! style="text-align:left" {{!}} • K

{{!}} {{val|10.296|0.023}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_7}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_8}}}

}}

style="vertical-align:top"

! style="text-align:left; border-top: 1px solid #a2a9b1;" colspan=2 {{!}} {{engvar |defaultWord=Color index |defaultLang=en-US |en-UK=Colour index |engvar= }}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}}• U−B

{{!}} {{{u-b}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} • B−V

{{!}} {{{b-v}}}

}}

style="vertical-align:top"

{{#if:2.332|

! style="text-align:left" {{!}} • V−R

{{!}} 2.332

}}

style="vertical-align:top"

{{#if:2.442|

! style="text-align:left" {{!}} • R−I

{{!}} 2.442

}}

style="vertical-align:top"

{{#if:0.636|

! style="text-align:left" {{!}} • J−H

{{!}} 0.636

}}

style="vertical-align:top"

{{#if:1.058|

! style="text-align:left" {{!}} • J−K

{{!}} 1.058

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Variable type

{{!}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Evolutionary stage

{{!}} {{{type2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Spectral type

{{!}} {{{class2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_1_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_2_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_3_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_4_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_5_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_6_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_7_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_8_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} U−B {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{u-b2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} B−V {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{b-v2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} V−R {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{v-r2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} R−I {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{r-i2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} J−H {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{j-h2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} J−K {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{j-k2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Variable type

{{!}} {{{variable2}}}

}}

{{Starbox end}}

DMacks (talk) 20:52, 2 December 2023 (UTC)

:That seems better in some aspects. I've notified the wikiprojects. Jo-Jo Eumerus (talk) 12:20, 5 December 2023 (UTC)

:A big improvement.   ~ Tom.Reding (talkdgaf)  13:18, 5 December 2023 (UTC)

::Generally I like it. Primefac (talk) 13:20, 5 December 2023 (UTC)

: My concern is how it will look if the box only includes, say, the B-V value with one or zero infrared magnitudes. This redesign may result in extra clutter. Praemonitus (talk) 17:14, 7 December 2023 (UTC)

:: Quick mockup of sections if they were single-valued (there's a lot of superfluous wikicode that I only removed part of when copy+pasting from the original example):

style="vertical-align:top;"|{{Starbox begin|name=TRAPPIST-1{{br}}(single-line current implementation)}}
style="background-color: #FFFFC0; text-align: center;" colspan="2"| {{#if:||Characteristics}}
{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component}}}

}}

{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component1}}}

}}

style="vertical-align:top"

{{#if:Main sequence|

! style="text-align:left" {{!}} Evolutionary stage

{{!}} Main sequence

}}

style="vertical-align:top"

{{#if:M8V|

! style="text-align:left" {{!}} Spectral type

{{!}} M8V

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_1}}}

}}

style="vertical-align:top"

{{#if:R|

! style="text-align:left" {{!}} Apparent magnitude (R)

{{!}} {{val|16.466|0.065}}

}}

style="vertical-align:top"

{{#if:2.332|

! style="text-align:left" {{!}} V−R {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} 2.332

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Variable type

{{!}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Evolutionary stage

{{!}} {{{type2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Spectral type

{{!}} {{{class2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_1_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} V−R {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{v-r2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Variable type

{{!}} {{{variable2}}}

}}

{{Starbox end}}

|style="vertical-align:top;"|{{Starbox begin|name=TRAPPIST-1{{br}}(single-line sub-grouping mockup)}}

style="background-color: #FFFFC0; text-align: center;" colspan="2"| {{#if:||Characteristics}}
{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component}}}

}}

{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component1}}}

}}

style="vertical-align:top"

{{#if:Main sequence|

! style="text-align:left" {{!}} Evolutionary stage

{{!}} Main sequence

}}

style="vertical-align:top"

{{#if:M8V|

! style="text-align:left" {{!}} Spectral type

{{!}} M8V

}}

style="vertical-align:top"

! style="text-align:left; border-top: 1px solid #a2a9b1;" colspan=2 {{!}} Apparent magnitude

style="vertical-align:top"

{{#if:R|

! style="text-align:left" {{!}} • R

{{!}} {{val|16.466|0.065}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_7}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_8}}}

}}

style="vertical-align:top"

! style="text-align:left; border-top: 1px solid #a2a9b1;" colspan=2 {{!}} {{engvar |defaultWord=Color index |defaultLang=en-US |en-UK=Colour index |engvar= }}

style="vertical-align:top"

{{#if:2.332|

! style="text-align:left" {{!}} • V−R

{{!}} 2.332

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Variable type

{{!}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:center" colspan="2" {{!}} {{{component2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Evolutionary stage

{{!}} {{{type2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Spectral type

{{!}} {{{class2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_1_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Apparent magnitude ()

{{!}} {{{appmag_2_2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} U−B {{engvar |defaultWord=color index |defaultLang=en-US |en-UK=colour index |engvar= }}

{{!}} {{{u-b2}}}

}}

style="vertical-align:top"

{{#if:|

! style="text-align:left" {{!}} Variable type

{{!}} {{{variable2}}}

}}

{{Starbox end}}

::I was thinking of suggesting to revert to the "current implementation" on the left for single-valued sections (but keeping the horizontal lines), but I'm ok with the proposed style even if it adds a little bit of extra height. Not changing back and forth between styles would add to the consistency between articles, and make values easier to find.   ~ Tom.Reding (talkdgaf)  17:58, 7 December 2023 (UTC)

::: I will likely not be the one to implement it if we decide to go with it, but I feel like having two systems will just be more complicated (and lead to a lot more debug issues if/when things need updating). I will note that there are a ton of templates (mainly government- or settlement-related) that have this sort of "header-plus-bulleted-entry" style with the offset value, so it's not like it will be unique in its layout. Primefac (talk) 19:03, 7 December 2023 (UTC)

::: The vast majority of stars are not going to need that amount of clutter. Note that you could always resort to having two templates: one for detail (e.g. Proxima Centauri) and for not (e.g. Epsilon Tauri). Praemonitus (talk) 22:38, 7 December 2023 (UTC)

:::{{ping|DMacks|Tom.Reding|Praemonitus|Primefac}} So, where are we here? Leave unchanged, go to the new version with sub-grouping always, or sub-grouping only with multiple lines? Jo-Jo Eumerus (talk) 08:24, 17 December 2023 (UTC)

::::I strongly oppose leaving it unchanged, since it creates a problem, and the alternatives solve the problem (without creating any problem as user- or editor-visible:). Among the alternatives, I agree with Tom.Reding's preference for consistency, rather than different layouts and entry-titles depending how many entries there are. I don't see the need for two different templates even if we did have two different modes: it would be easy to have the single template conditionalize itself on the presence of more than one sub-entry of a type. Obviously reducing code duplication is good, and having fewer options is simpler and less error-prone. For Praemonitus's concern, the dividing line and internal header for the set would be omitted altogether if there are no entries (just like infoboxes usually omit entries that have no values). DMacks (talk) 08:55, 17 December 2023 (UTC)

:::::I can get behind the new layout. I don't think the "we can't have a single entry like this" complaint has merit, but I'm not going to fight to have a single template layout even if it means a lack of ease of updating. Primefac (talk) 13:10, 17 December 2023 (UTC)

:::::: We already use the multiple template approach depending on the number of components, so I see no reason not to do the same in this case. I'd argue that most of the magnitude information is of little interest to the vast majority of readers anyway, and this discussion is concerning only a minority of the articles. There's no reason to introduce additional clutter just for data that usually isn't presented and most people don't read or appreciate. Praemonitus (talk) 14:03, 17 December 2023 (UTC)

:::::::Meh, I would probably punt the "sub-grouping always" and "sub-grouping only when multiple lines" to a parameter. Or is it possible to have the template count the number of parameters it has received. Jo-Jo Eumerus (talk) 14:50, 17 December 2023 (UTC)

::::::::If there's no agreement, I like the grouping-parameter idea over forcing whichever one, at least from a user's perspective, and not from an implementation/TE's perspective.   ~ Tom.Reding (talkdgaf)  14:59, 17 December 2023 (UTC)

:::::::: Yes, that's a good suggestion. It raises the question: if we use such a parameter, can it be set to a default value based on the input value of other parameters? Praemonitus (talk) 16:24, 17 December 2023 (UTC)

::::::::{{ml|ParameterCount|main|...}} counts the number of parameters matching a lua pattern. DMacks (talk) 18:17, 17 December 2023 (UTC)

:::::::::'fraid that I don't know how to write up such a template. Jo-Jo Eumerus (talk) 07:25, 23 December 2023 (UTC)

::::::::::I will volunteer to work on it, but astronomy is not my field so I would first like to see either consensus for the desired results or consensus that it doesn't really matter much/instead up to the template-author. DMacks (talk) 12:03, 23 December 2023 (UTC)

:::::::::::I think we can start with a counter version i.e "sub-grouping" when more than one non-empty parameter and "one line" when only one. Jo-Jo Eumerus (talk) 07:32, 27 December 2023 (UTC)

=Poll=

{{ping|DMacks|Tom.Reding|Praemonitus|Primefac}}So that this doesn't get abandoned: Do folks prefer a template with always sub-grouping, two templates one with sub-grouping and one without, or a template with a parameter that tells whether to subgroup, or something else? Jo-Jo Eumerus (talk) 07:17, 9 January 2024 (UTC)

  • First choice to always sub-group, second choice switch based on count, hard no to the parameter option because then we'll just end up arguing at every page which flavour of output should be used. Primefac (talk) 07:26, 9 January 2024 (UTC)
  • First choice to always sub-group, second choice switch based on count.   ~ Tom.Reding (talkdgaf)  12:42, 9 January 2024 (UTC)

Notification: exoplanet.eu dead

The template contains the line:

:{{#if:{{{EPE|}}}|Extrasolar Planets
Encyclopaedia
[http://exoplanet.eu/star.php?st={{{EPE}}} data]

The exoplanet.eu site no longer supports direct links to star systems, and doesn't have unique pages for star systems. The only way to get this link working is to make a default archive.org link, but this is not recommended as the data will be outdated. Recommend removing exoplanets.eu from this template, the site is for planets afterall. -- GreenC 02:41, 23 December 2023 (UTC)

: Support: yes, that has been dead and irrelevant for a while now. Praemonitus (talk) 05:38, 23 December 2023 (UTC)

:If it doesn't work anymore and can't be repaired, it should be removed. Jo-Jo Eumerus (talk) 07:24, 23 December 2023 (UTC)

::{{done}}. Primefac (talk) 07:28, 9 January 2024 (UTC)

Starbox relpos title isn't centered

{{Starbox begin | name=Example }}

{{Starbox relpos

| reference =

| epoch = 2009

| primary = HD 107148 A

| component = HD 107148 B

| angdistsec = 34.9

| posang = 174.7

| projsep = 1,790

}}

{{Starbox end}}

For reasons I can't discern, the title row of the {{tl|Starbox relpos}} template isn't being centered. I also think "Angular distance" should be linked and the "Observed separation (projected)" label should be simplified to "Projected separation". Praemonitus (talk) 18:29, 8 January 2024 (UTC)

:Should be sorted now, I think the main issue was the code being written wrong, but trying to shove everything onto one line probably didn't help either. Primefac (talk) 07:37, 9 January 2024 (UTC)

:: Thank you. Praemonitus (talk) 14:10, 9 January 2024 (UTC)

Title of template:Starbox catalogue

The {{tl|starbox catalogue}} template frequently includes the primary designation of the star (and its variations) as well as a list of other identifiers. For this reason, shouldn't the template be simply titled 'Designations' rather than 'Other designations'? Praemonitus (talk) 15:51, 26 May 2024 (UTC)

Edit request 20 February 2025

{{Edit template-protected|Template:Starbox astrometry|answered=yes}}

I have modified the sandbox to prevent wrapping of unit fields containing a slash character: "km/s" and "mas/yr", using {{t|nowrap}} to include the preceding space (previously  ) and the whole unit. I have tested the results to see that they prevent the wrapping shown at R Canis Majoris, HD 187474, and HD 174881, and that nothing terrible happens on major pages including Sirius and Alpha Centauri. Can you apply this to the main template? Lithopsian (talk) 18:26, 20 February 2025 (UTC)

:@Lithopsian Template:Starbox begin/sandbox has no edits from you? Sohom (talk) 00:04, 24 February 2025 (UTC)

::Ah, much confusion. I edited Template:Starbox astrometry/sandbox for {{t|Starbox astrometry}}. I got redirected to this talk page so my edit request shows as being for this page, and I didn't notice. Lithopsian (talk)

::: {{done}} * Pppery * it has begun... 21:57, 24 February 2025 (UTC)

:Thanks. The starboxes are much tidier now. Lithopsian (talk) 17:23, 25 February 2025 (UTC)

{{edit template-protected|Template:Starbox catalog|answered=yes}}

I have edited the sandbox to drop the hard wrapping at 250px. The designation list will now wrap naturally either at the width required by other sections of the starbox or at the width of the longest unbroken string of characters in the designation list. This has been discussed at Wikipedia talk:WikiProject Astronomical objects#Starbox catalog wrapping with no objection. Lithopsian (talk) 20:25, 9 March 2025 (UTC)

:{{done}} Primefac (talk) 13:10, 11 March 2025 (UTC)

Template-protected edit request on 6 May 2025

{{edit template-protected|Template:Starbox astrometry|answered=yes}}

Please add nowrap clauses around the " mas/yr" units for prop_mo_ra2 and prop_mo_dec2, the same as already in place for prop_mo_ra and prop_mo_dec. These units can otherwise wrap at the "/" character. which can be confusing and disconcerting. I'll offer HD 142 as an example where this happens (for me), but it may depend on your theme and other aspects of your setup such as available fonts and DPI. Lithopsian (talk) 14:10, 6 May 2025 (UTC)

:{{complete2}}. P.I. Ellsworth , ed. put'er there 18:54, 6 May 2025 (UTC)

Edit request 15 May 2025

{{Edit template-protected|Template:Starbox detail|answered=yes}}

In {{t|Starbox detail}}, the metallicity units "[Fe/H]" can wrap at the slash, which is unfortunate. Other units where this could happen contain no-break-spaces. In the sandbox, I have tested no-wrapping this unit. The field caption "Metallicity [Fe/H]" may still wrap at the space. Please promote this version to the live template. Lithopsian (talk) 19:48, 15 May 2025 (UTC)

: {{done}} * Pppery * it has begun... 03:26, 16 May 2025 (UTC)

Edit request 3 June 2025

{{Edit template-protected|Template:Starbox astrometry|answered=}}

Description of suggested change:

Please update {{t|Starbox astrometry}} from the sandbox.

There are some inconsistencies (or errors) between the behaviour of the first (component1) set of fields and the second (component2) set:

  • The first parallax margin of error (p_error) is formatted using {{t|±}} and the second (p_error2) using " ± ", which is likely to render with a slightly different spacing and will be different if copied.
  • When there is no margin of error field (p_error) then no distance is calculated from the first parallax, but one is shown—usually with an insane number of decimal places—if there is a parallax2 field without a p_error2 field.
  • When only one of prop_mo_ra and prop_mo_dec is specified, the other is shown empty (with a mas/yr unit), but when only one of prop_mo_ra2 and prop_mo_dec2 is specified, the other is shown with a hyphen ("- mas/yr"), which is inconsistent and could potentially be confused with a minus sign.

I have edited and tested the sandbox to make the second set of fields behave like the first set for these three cases. Lithopsian (talk) 16:10, 3 June 2025 (UTC)

Broken NSTED urls

At the end of last year, the NASA Exoplanet archive (NSTED) urls in {{t|Starbox reference}} were changed from a query (https://...?objname={{{NSTED}}}) to an actual part of the url (https://.../{{{NSTED}}}). Prior to this, spaces in the NSTED designator had to be replaced with "+" by the user of the starbox, as is still the case with the more widespread Simbad fields. Now, designators with "+" still produce the same output in the starbox, but the url is no longer valid (eg. [https://exoplanetarchive.ipac.caltech.edu/overview/Alpha+Tauri https://exoplanetarchive.ipac.caltech.edu/overview/Alpha+Tauri]). This affects a large proportion of the uses of the NSTED fields. A valid url can be generated by using "%20" instead of "+" to replace spaces, but I haven't seen any articles that do this yet; there might be some, though.

I have edited the template sandbox to correctly encode spaces (and potentially other characters) for use in the url, which allows articles to use NSTED fields without having to encode spaces. However, most articles do not currently use a space because it produces visibly broken output in the starbox. Most articles use "+". Should I code the template to replace "+" with "%20" and have most current uses work, but break future uses of designators containing "+"? Or is there some relatively painless way to change all the current uses of the template that have "+" in an NSTED field? Or even just to find them all, I suspect no more than a few hundred. Lithopsian (talk) 14:16, 8 June 2025 (UTC)

:I now have a hopefully-complete list of all articles that use "+" to replace a space character in an NSTED field. Less than 200, which isn't as bad as I feared. These are all broken now, and they'll all be broken if the current sandbox template is adopted. A small number of articles use "+" as an actual part of the designation (eg. WD 1856+534); these should all work now and should continue to work if the field is encoded, but any hacks to make the template treat "+" as being a substitute for a space would break them.

:There are several workarounds for space characters, which are used in many articles. In many cases, the website will accept "_" or "-" as a replacement character, and often no space at all will work. This should all be fine, even if those fields are then url-encoded. A few articles were already using "%20" to substitute for a space; I have edited all of these because url-encoding them would break the url. Lithopsian (talk) 15:39, 9 June 2025 (UTC)

:So, all "+" characters representing spaces are now gone and the NSTED links should all work now (although some may not exist). It is unfortunate that the handling of spaces is inconsistent between the Simbad and NSTED fields, but that is inevitable given the URL formats involved. If anything, the Simbad fields should be changed to properly url-encode the field per whatever URL is current, but that would involved changing thousands of articles instead of just 100 and some. Lithopsian (talk) 17:52, 10 June 2025 (UTC)

Edit request 9 June 2025

{{Edit template-protected|Template:Starbox reference|answered=yes}}

Description of suggested change:

Please promote {{t|Starbox reference/sandbox}} to {{t|Starbox reference}}. Currently, a space in an NSTED field breaks everything, and the traditional solution of explicitly putting a "+" in the field instead of spaces doesn't work with the new url format. I have edited the NSTED fields so that they are correctly urlencoded, usually replacing a space with "%20" so that a valid url is formed. This enables star designations containing a space, and potentially other invalid url path characters, to be used in the starbox for NASA Exoplanet Archive references.

Note that uses of the template which already contain a "+" character intended to replace a space will continue to be broken after this change. See the discussion above for details. It is not yet clear whether these will be fixed by editing the articles or by some hack in the template. Lithopsian (talk) 13:48, 9 June 2025 (UTC)

:{{re|Lithopsian}} {{done}}. We could fix the broken articles by adding {{tlx|replace}} to the template (something like {{tlx|replace|string|+|%20}} in this case), but I think it would be better to directly update the articles (possibly via AWB). In case you also discussed this topic elsewhere, let me know if you managed to gather better tips, and if you still have that {{tq|list of all articles that use "+" to replace a space character in an NSTED field}}, please share it as well. Thanks. Est. 2021 (talk · contribs) 02:08, 10 June 2025 (UTC)

::Here's the list of articles I found. I believe they have all been edited to correctly produce a link to a NASA Exoplanet Archive page. Quite a number don't appear to exist (any more?) and so I have commented out the NSTED field.

{{collapse|

  • 11 Ursae Minoris
  • 18 Scorpii
  • 23 Librae
  • 2MASS J0249-0557
  • 2MASS J0249-0557
  • 30 Arietis
  • 36 Ophiuchi
  • 47 Ursae Majoris
  • 6 Lyncis
  • 70 Virginis
  • 85 Pegasi
  • 89 Herculis
  • BD%E2%88%9210%C2%B03166
  • BD%E2%88%9217 63
  • Chi Virginis
  • Delorme 1
  • DP Leonis
  • Gamma Cephei
  • Gamma Leonis
  • GJ 1214
  • GJ 3634
  • Gliese 179
  • Gliese 22
  • Gliese 317
  • Gliese 570
  • Gliese 676
  • Gliese 86
  • Gliese 900
  • Gliese 900
  • HD 101581
  • HD 103197
  • HD 103774
  • HD 104067
  • HD 106252
  • HD 106515
  • HD 108874
  • HD 109271
  • HD 110067
  • HD 114762
  • HD 114783
  • HD 11506
  • HD 118203
  • HD 11964
  • HD 121504
  • HD 125595
  • HD 125612
  • HD 129445
  • HD 131664
  • HD 13931
  • HD 139357
  • HD 145377
  • HD 1461
  • HD 147018
  • HD 148156
  • HD 148427
  • HD 152079
  • HD 156668
  • HD 158259
  • HD 158259
  • HD 162020
  • HD 166724
  • HD 16760
  • HD 168746
  • HD 1690
  • HD 171238
  • HD 175167
  • HD 176051
  • HD 179079
  • HD 181433
  • HD 183263
  • HD 185269
  • HD 189733
  • HD 190984
  • HD 191806
  • HD 191939
  • HD 20003
  • HD 201585
  • HD 202628
  • HD 203030
  • HD 203473
  • HD 20367
  • HD 204313
  • HD 208527
  • HD 215497
  • HD 219077
  • HD 220074
  • HD 220689
  • HD 221420
  • HD 240210
  • HD 2638
  • HD 27631
  • HD 28254
  • HD 290327
  • HD 29587
  • HD 30562
  • HD 34445
  • HD 35759
  • HD 36384
  • HD 37605
  • HD 38858
  • HD 40307
  • HD 4113
  • HD 4203
  • HD 42936
  • HD 43197
  • HD 43848
  • HD 44219
  • HD 45184
  • HD 45364
  • HD 47186
  • HD 48265
  • HD 5319
  • HD 5388
  • HD 60532
  • HD 66141
  • HD 6718
  • HD 68402
  • HD 69830
  • HD 70642
  • HD 7199
  • HD 73267
  • HD 73344
  • HD 76700
  • HD 7924
  • HD 8535
  • HD 85390
  • HD 86081
  • HD 86226
  • HD 86264
  • HD 87883
  • HD 89744
  • HD 90156
  • HD 92788
  • HD 9446
  • HD 9578
  • HD 96167
  • HD 98649
  • HIP 14810
  • HIP 5158
  • HIP 56948
  • HIP 70849
  • HR 8799
  • HR 8799
  • Mu2 Octantis
  • Omicron Coronae Borealis
  • QS Virginis
  • Rho Indi
  • RR Caeli
  • SR 12 (star)
  • V429 Geminorum
  • VB 10
  • Xi2 Ceti

}} Lithopsian (talk) 17:48, 10 June 2025 (UTC)