Difference between revisions of "Template:CelestialRef/test"
imported>Gadget850 m (update #tag:ref to {{refn}}, replaced: {{#tag:ref| → {{refn| using AWB) |
imported>Gadget850 |
||
Line 50: | Line 50: | ||
-->|sep={{{sep| - }}}<!-- | -->|sep={{{sep| - }}}<!-- | ||
-->}}<!-- end CelestialRef/test/Extras | -->}}<!-- end CelestialRef/test/Extras | ||
− | -->|{{ | + | -->|{{#tag:ref|<!-- |
-->{{CelestialRef/test/Extras<!-- | -->{{CelestialRef/test/Extras<!-- | ||
-->|{{{1}}}<!-- | -->|{{{1}}}<!-- |
Revision as of 18:22, 23 May 2015
![]() | This template is currently in development. Please do not use it in articles just yet. |
[[{{{1}}}]] [1]
Contents
Examples
Any identifier recognized by Simbad for its sim-basic will do.
So, these are all possible: {{CelestialRef/test| M 31}}, {{CelestialRef/test| Crab Nebula}}, {{CelestialRef/test| HD 189733b}} etc.
Displayed as: [[Template:Strip whitespace]] [2], [[Template:Strip whitespace]] [3], [[Template:Strip whitespace]] [4].
This shows all the features in use: Example: {{CelestialRef/test| Crab Nebula | cds=short | ids=show | bib=show | plot=10 |units=arcsec | image=show | bwimage=show }}
yields [[Template:Strip whitespace]] [5]
Same example with commas instead of dashes : {{CelestialRef/test| Crab Nebula | sep=, |cds=short | ids=show | bib=show | plot=10 |units=arcsec | image=show | bwimage=show }}
yields [[Template:Strip whitespace]] [6]
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.
Inline
Showing all the optoins, as inline instead of ref:
* {{CelestialRef/test| Crab Nebula | cds=short | ids=show | bib=show | plot=10 |units=arcsec | image=show | bwimage=show | inline=yes }}
yields:
- [[Template:Strip whitespace]]: " Crab Nebula ",SIMBAD,CDS- Ids- Bibliography- Star plot- Image- B&W Image.
Using a different name for the internal link
You can use a different name for the internal link and the SIMBAD lookup.
{{CelestialRef/test| M 31 |Andromeda Galaxy }}
yields: [[Template:Strip whitespace]] [7]
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
{{CelestialRef/test| M 42 | }}
Yields:
[[Template:Strip whitespace]][8]
You can miix with other named parameters in any order, e.g.:
{{CelestialRef/test| M 42 | | bib=show }} (same idea but added an extra named parameter at the end)
Yields:
[[Template:Strip whitespace]][9]
Which you could then add to some text as Test {{CelestialRef/test| M 42 | | bib=show }}
Test [[Template:Strip whitespace]][10]
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: {{CelestialRef/test| M 31 |Andromeda Galaxy | link=no}}
yields: Template:Strip whitespace [11]
{{CelestialRef/test| M 31 | link=no}}
yields: Template:Strip whitespace [12]
Siblings
You can add a link for siblings e.g. {{CelestialRef/test| GL 146 |siblings = show}}
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.
[[Template:Strip whitespace]] [13]
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: {{CelestialRef/test| HD 189733b | plot = 5 }}
yields [[Template:Strip whitespace]] [14] to plot stars within 5 arcmins of HD 189733b
Example: {{CelestialRef/test| Alpha Centauri | plot = 50 | units = arcsec }}
yields [[Template:Strip whitespace]] [15] 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: {{CelestialRef/test| bib=show | WASP-80b }}
Planet | Mass (MJ) | Period (d) | SpT | B - V | Te? |
---|---|---|---|---|---|
[[Template:Strip whitespace]] [16] | 2.03 | 0.813 | K7 | 1.0 | 4400d |
[[Template:Strip whitespace]] [17] | 7.25 | 2.88 | K3 | — | 4619 |
[[Template:Strip whitespace]] [18] | 0.41e | 32.0 | K4 | 1.11 | 4640 |
[[Template:Strip whitespace]] [19] | 0.53e | 431.7 | - | - | - |
[[Template:Strip whitespace]] [20] | 0.0.86 | 7.92 | K5 | 0.92 | 4650h |
[[Template:Strip whitespace]] [21] | 0.27e | 263.3 | K9f | - | - |
[[Template:Strip whitespace]] [22] | 0.71e | 1657 | - | - | - |
[[Template:Strip whitespace]] [23] | 5.12e | 655.6 | K4 | 1.14 | 4714 |
[[Template:Strip whitespace]] [24] | 3.06 | 3.09 | K5 | — | - |
[[Template:Strip whitespace]] [25] | 0.33 | 237.6 | K3 | 1.07 | 4746 |
[[Template:Strip whitespace]] [26] | 1.99 | 380.85 | K3/4 | 1.04 | 4795 |
[[Template:Strip whitespace]] [27] | 0.38e | 2.82 | K4 | 1.06 | 4840 |
[[Template:Strip whitespace]] [28] | 1.09 | 1.42 | N/A | 1.06 | 4861 |
[[Template:Strip whitespace]] [29] | 1.44e | 345.6 | K5 | 1.08 | 4962 |
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: {{CelestialRef/test| Barnard's star }}
yields [[Template:Strip whitespace]] [30]
Example: {{CelestialRef/test| Barnard's star |link=no}}
yields Template:Strip whitespace [31]
Example: {{CelestialRef/test| Barnard's star | }} for ref only
yields [[Template:Strip whitespace]][32]
Example: {{CelestialRef/test| M 31 | Andromeda Galaxy }} to display as Andromeda Galaxy but look up as M 31
yields [[Template:Strip whitespace]] [33]
Same example, name only, no internal link: {{CelestialRef/test| M 31 | Andromeda Galaxy |link=no}}
yields Template:Strip whitespace [34]
Final example shows all the features in one ref
Example: {{CelestialRef/test| Crab Nebula | cds=short | ids=show | bib=show | plot = 10 |units = arcsec | image=show | bwimage=show }}
yields [[Template:Strip whitespace]] [35]
References
- ↑ "{{{1}}}" , SIMBAD, Centre de données astronomiques de Strasbourg.
- ↑ " M 31",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " Crab Nebula",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " HD 189733b",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " Crab Nebula ",SIMBAD,CDS- Ids- Bibliography- Star plot- Image- B&W Image.
- ↑ " Crab Nebula ",SIMBAD,CDS, Ids, Bibliography, Star plot, Image, B&W Image.
- ↑ " M 31 ",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " M 42 ",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " M 42 ",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ " M 42 ",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ " M 31 ",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " M 31 ",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " Gliese 146 ",SIMBAD,Centre de données astronomiques de Strasbourg- Siblings.
- ↑ " HD 189733b ",SIMBAD,Centre de données astronomiques de Strasbourg- Star plot.
- ↑ " Alpha Centauri ",SIMBAD,Centre de données astronomiques de Strasbourg- Star plot.
- ↑ "WASP-43b",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "HAT-P-20b",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "GJ 439 c",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "GJ 439 d",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "WASP-59b",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "HD 113538b",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "HD 113538c",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "BD-17 63b",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "WASP-10b",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "BD-08 2823b",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "HD 20868b",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "HD 63454b",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "Qatar 1b",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ "CD-23 395b",SIMBAD,Centre de données astronomiques de Strasbourg- Bibliography.
- ↑ " Barnard's star ",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " Barnard's star ",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " Barnard's star ",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " M 31 ",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " M 31 ",SIMBAD,Centre de données astronomiques de Strasbourg.
- ↑ " Crab Nebula ",SIMBAD,CDS- Ids- Bibliography- Star plot- Image- B&W Image.
See also
The above documentation is transcluded from Template:CelestialRef/test/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |