Template:Infobox star/testcases
![]() | This is the template test cases page for the sandbox of Template:Infobox star. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
This is the testcases page for {{Infobox star/sandbox}}, used to test changes to the individual features of {{Infobox star}}, prior to their potential integration into the live infobox code. Various detailed examples of the infobox's parameters and features are documented here to provide the information necessary to aid editors' understanding on why and how particular features are used, and how the code for their use works. The current version of the complete blank syntax for {{Infobox star/sandbox}} can be found in the "Syntax" section below.
Syntax
{{Infobox star/sandbox | name = | image = | alt = | map image = | map x = | map y = | map circle = | caption = | type = | constellation = | epoch = | proper name = | galaxy = | ascension = | declination = | apparent = | apparent band = | absolute = | absolute band = | distance = | motion ra = | motion dec = | velocity = | no of stars = | age = | mass = | radius = | rotation = | temperature = | stellar = | variable = | planets = }}
Examples
"map image" and Kepler-90
Star in Draco | |
---|---|
Epoch | J2000.0 |
Coordinates |
|
[[Apparent magnitude|Apparent Template:Mvar]] (V) | 14.0 |
[[Absolute magnitude|Absolute Template:Mvar]] (V) | ~4.3 |
Distance | Template:Val light-years |
Proper motion |
|
Characteristics | |
Age | ~2 billion years |
Mass | Template:Val solar masses |
Radius | Template:Val solar radii |
Temperature | Template:Val kelvin |
Stellar class | G0V |
Planets | 8 |
In some cases it may be appropriate to use a different image for the infobox's map. Kepler-90 is a star that is part of the Kepler field of view, an area that is mostly situated in, and mostly associated with, the constellation of Cygnus. However, Kepler-90 is not only in the constellation of Draco, it's far away from any of the major features of Draco. Being closer to the 'right wing' of Cygnus, it would be better illustrated in relation to Cygnus instead, thus the map image
parameter is being used here to replace the default map of Draco, called by the constellation
parameter, with "Cygnus constellation map.svg instead. This is achieved with an {{#if:}}
parser function that replaces the default {{{constellation|}}} constellation map.svg
string with {{{map image|}}}
when it finds the map image
parameter is active.
Syntax
{{Infobox star/sandbox | name = Kepler-90 | map image = Cygnus constellation map.svg | map x = 68 | map y = 15 | constellation = Draco | ascension = {{RA|18|57|44.0384}} | declination = {{DEC|+49|18|18.4958}} | apparent = 14.0 | absolute = ~4.3 | distance = {{Val|2,840|40}} [[light-year]]s | motion ra = {{Val|−4.379|0.030}} [[Minute and second of arc#Symbols and abbreviations|mas]]/yr | motion dec = {{Val|−3.214|0.028}} mas/yr | age = ~2 billion years | mass = {{Val|1.2|0.1}} [[solar mass]]es | radius = {{Val|1.2|0.1}} [[solar radius|solar radii]] | temperature = {{Val|6080|260|170}} [[kelvin]] | stellar = [[G-type main-sequence star|G0V]] | planets = 8 }}
"map circle" and Maia
Maia (circled) in the Pleiades | |
Star in Taurus | |
---|---|
Epoch | J2000.0 |
Coordinates |
|
[[Apparent magnitude|Apparent Template:Mvar]] (V) | 3.871 |
[[Absolute magnitude|Absolute Template:Mvar]] (V) | −1.69 |
Distance | ~400 light-years |
Proper motion |
|
Radial velocity | 7.5 km/s |
Characteristics | |
Age | 75–150 million years |
Mass | >5 solar masses |
Radius | 6.04 solar radii |
Temperature | 12,600 kelvin |
Stellar class | B8III |
In various situations where the image used in map image
does not work well with the map circle's size, its width can be changed to make it better stand out against the image. With Maia (star), an image of the Pleiades cluster is used to locate the star, though the circle's default width of 12 pixels is not wide enough to properly encircle the star in the image. Thus, map circle
is used to bump up the circle's width to 25 pixels instead. This is achieved by setting a default value on the parameter itself – {{{map circle|12}}}px
– which is ignored the moment the parameter is used and a different value is placed in it.
Syntax
{{Infobox star/sandbox | name = Maia | map image = Pleiades large.jpg | map x = 62 | map y = 21 | map circle = 25 | caption = Maia (circled) in the Pleiades | constellation = Taurus | ascension = {{RA|03|45|49.6067}} | declination = {{DEC|24|22|03.895}} | apparent = 3.871 | absolute = −1.69 | distance = ~400 [[light-year]]s | motion ra = 21.09 [[Minute and second of arc#Symbols and abbreviations|mas]]/yr | motion dec = −45.03 mas/yr | velocity = 7.5 km/s | age = 75–150 million years | mass = >5 [[solar mass]]es | radius = 6.04 [[solar radius|solar radii]] | temperature = 12,600 [[kelvin]] | stellar = [[Blue giant|B8III]] | variable = }}