Difference between revisions of "Template:CelestialRef/doc"

From blackwiki
Jump to navigation Jump to search
imported>Robertinventor
(→‎Use in tables: changed to BD-17|63b because HIP 2247b couldn't be found by SIMBAD)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
==Work in Progress==
+
{{info|
 +
 
 +
'''Work in Progress'''
  
 
This template is a work in progress. Comments should be made at [[Wikipedia talk:Notability (astronomical objects)#New template StarRef]].
 
This template is a work in progress. Comments should be made at [[Wikipedia talk:Notability (astronomical objects)#New template StarRef]].
 +
 +
}}
 +
{{underconstruction}}
  
 
==Documentation==
 
==Documentation==

Revision as of 08:25, 20 July 2013

Template:Underconstruction

Documentation

StarRef creates

  • Internal link to the star in Wikipedia
  • Footnote with links to the SIMBAD entry, alternative ids, bibliography
  • Optionally, footnote link to plot of nearby stars.
  • Optionally, footnote link to sibling stars
Parameter Example Usage
First unnamed parameter M First part of id
Second unnamed parameter 31 Second part of id (required, can be blank)
Third unnamed parameter 10 Radius of star plot (if omitted, no star plot link added)
Fourth unnamed parameter arcsec Measurement unit for radius, arcsec, arcmin or deg acceptable, default arcmin
siblings show set to show to add link to siblings search
name none set to none to create the footnote ref only, without the linked name for the ID

Any identifier recognized by Simbad for its sim-id will do. So that includes id's like M 31, or HD 189733b and also many names like Barnard's Star

The two parts of the id have to be given as separate parameters for techy reasons - the space between has to be changed into a + to make the SIMBAD urls.

Examples

Example: {{ StarRef | HD | 189733b }}

yields Template:StarRef

Example: {{ StarRef | Barnard's | star }}

yields Template:StarRef

Example: {{StarRef||WASP-43b|}}} - note, the second parameter is blank, this still works with Simbad

yields Template:StarRef

Ref only

If you just want the ref without the name use Test {{ StarRef | M | 42 | name = none }}

Test Template:StarRef

Siblings

You can add a link for siblings e.g. {{ StarRef | GL | 146 |siblings = show}}

Template:StarRef

Optional third and fourth parameters for star plot

If you add a third parameter, this is the distance in arcmins for the plot. You can add a fourth parameter to set the measurement unit e.g. arcsec to plot a distnace in arcsecs

Example: {{ StarRef | HD | 189733b | 5 }}

yields Template:StarRef to plot stars within 5 arcmins of HD 189733b

Example: {{ StarRef | Alpha | Centauri | 40 }}

yields Template:StarRef to plot stars within 50 arcsecs of Alpha Centauri

Use in tables

The template can be used in tables. Here is an example to test it. Data from Giant Planets around Late K Dwarf Stars - Table 1:

Confirmed Giant Planets around Mid- and Late-K-type Dwarf Stars

Planet Mass (MJ) Period (d) SpT B - V Te?
Template:StarRef 0.55 3.068 K7-M0 0.94 ~4000
Template:StarRef > 3 > 5 yr K7 1.42 4100c

(2011)

Template:StarRef 2.03 0.813 K7 1.0 4400d
Template:StarRef 7.25 2.88 K3 4619
Template:StarRef 0.41e 32.0 K4 1.11 4640
Template:StarRef 0.53e 431.7 - - -
Template:StarRef 0.0.86 7.92 K5 0.92 4650h
Template:StarRef 0.27e 263.3 K9f - -
Template:StarRef 0.71e 1657 - - -
Template:StarRef 5.12e 655.6 K4 1.14 4714
Template:StarRef 3.06 3.09 K5 -
Template:StarRef 0.33 237.6 K3 1.07 4746
Template:StarRef 1.99 380.85 K3/4 1.04 4795
Template:StarRef 0.38e 2.82 K4 1.06 4840
Template:StarRef 1.09 1.42 N/A 1.06 4861
Template:StarRef 1.44e 345.6 K5 1.08 4962

SIMBAD urls documentation

See SIMBAD - Query by urls/

References