Template:CelestialRef/workpage/doc

Documentation
CelestialRef/workpage creates


 * Name or internal link to the celestial object in Wikipedia
 * Footnote with links to the SIMBAD entry
 * Optionally, extra links to other entries for the object in online databases. These are added to the footnote.

It is especially useful if you have a table of celestial objects and want to add footnotes to each one, and maybe add extra entries in the footnotes such as pre-expanded SIMBAD bibliography, star plot, or link to a photograph of the object, as appropriate.

Alternative to this template: you can use: cite simbad if you just want to add the SIMBAD footnote, without these extra options.

Convention: - attributes in this template are assigned "yes" or "no" if to do with formatting and "show" if to do with display of various elements. That seems to help with readability when you have many params to pass.

Techy note: uses CelestialRef/workpage/Extras for the contents of the footnote (shown inline for inline=yes )

Examples
Any identifier recognized by Simbad for its sim-basic will do.

So, these are all possible:, , etc.

Displayed as:, ,.

This shows all the features in use: Example:

yields

Same example with commas instead of dashes :

yields

That might be useful in an article for a single celestial object, for instance, to add all those links in a footnote for the object which is the subject of the article.

See HD 133600 for a try out of that approach

Inline
Showing all the options, as inline instead of ref:

yields:

yields:

Format for external links section
This follows the example of JPL small body

*

yields:

Once the details are all sorted out, this could be made into an easier to use external links template which calls this one with suitable defaults e.g. CelestialRefEx

It would be preset to | radio=yes | at=yes | all=show probably, then user can override e.g. set extras like siblings, or if they want it minimal can do all=no and say what they want included individually. Or some such, details to be thought through later.

Extras as radio or new line in footnote
You can also use the radio in a footnote like this:

E.g.

Or just put the links into a new line in the footnote indented as:

all=show option
This adds ids, bib, image, and bwimage (and anything else added in future relevant for all objects) all in one go. Here it is with new line:

Using a different name for the internal link
You can use a different name for the internal link and the SIMBAD lookup.

yields:

Ref only
If you just want the ref without the name, use the same approach, but make the different name for the internal link blank, as in

Yields:

You can miix with other named parameters in any order, e.g.:

(same idea but added an extra named parameter at the end) Yields:

Which you could then add to some text as Test

Test

It doesn't matter where you put this blank field amongst the other parameters, so long as it goes after the object name.

Techy details - the template recognizes your blank field as parameter 2, the second unnamed parameter.

No internal link
If you just want the name without an internal link, add link=no as:

yields:

yields:

Siblings
You can add a link for siblings e.g.

This may be useful if the object is part of a larger group and this is relevant to the article citing it, in this case the Hyades super cluster.

Star plot
The advantage of the star plot extra link is that it lets the author of the page preset the radius for the plot. For some objects this needs to be large, e.g. 20 arcmins or more. For others, that shows far too many objects and a smaller radius in arcsecs is appropriate. Example:

yields  to plot stars within 5 arcmins of HD 189733b

Example:

yields  to plot stars within 50 arcsecs of Alpha Centauri

Use in tables
The template can be used in tables. This was the original motivation for this template - to have an easy way to add footnotes anad add extra links to the footnotes, for every entry in a table.

Here is an example to test it.

Confirmed Giant Planets around Mid- and Late-K-type Dwarf Stars
All entries are set to add the extra Bibliography link to the refs.

Example:

Data from Giant Planets around Late K Dwarf Stars - Table 1

Test cases
Included mainly to check all the features are working correctly, check this after editing the code and add more test cases if nec if you add new features.

Example:

yields

Example:

yields

Example: for ref only

yields

Example: to display as Andromeda Galaxy but look up as M 31

yields

Same example, name only, no internal link:

yields

Final example shows all the features in one ref

Example:

yields