Template:Extrasolar planet counts/doc
| This is a documentation subpage for Template:Extrasolar planet counts. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Purpose
The {{Extrasolar planet counts}} template centralizes the counts of verified extrasolar planets and systems. These are used in several articles, and sometimes more than once. Placing them here allows them all to be updated at once, and avoids the problem of only one count in an article getting updated. This template should not be subst'd.
Syntax
The template is used as follows:
- {{Extrasolar planet counts|parameter}}
The first parameter specifies the data value to be inserted:
- asof - the date as of which the data is valid. With asof only, a second parameter can be specified indicating the format of the date to be inserted. Template:date is used, and the format codes are defined there.
- planet_count - the number of extrasolar planets
- system_count - the number of systems with extrasolar planets
- multiplanetsystem_count - the number of systems with more than one extrasolar planet
- full - if the entire message displayed on this template is desired
Data source
These numbers are sourced from the frequently updated Interactive Extra-solar Planets Catalog, located here.
The numbers can be updated by locating the switch statement in the template source code, and updating the four data items therein. The switch, with the data items to be updated in bold, currently looks like this:
-->{{#switch: {{{1|}}}
| asof = {{date|1 January 2021|{{{2|}}}}}
| planet_count = 4,395
| system_count = 3,242
| multiplanetsystem_count = 720
| full = As of {{date|1 January 2021|{{{2|}}}}}, there are 4,395 planets in 3,242 systems, with 720 systems having more than one planet.
| #default = {{error|invalid parameter}} }}<!--
Verify that you are looking at the Extrasolar Planets Encyclopaedia "Catalog" page, and that the filter is set for "Confirmed/All planets". Note that the "Confirmed" is hidden unless the pulldown list is displayed. Immediately above the list of planets, a total line similar to the following will be displayed:
Showing 3,242 planetary systems / 4,395 planets / 720 multiple planet systems
In the switch statement, asof should be set to the current date, and system_count, planet_count and multiplanetsystem_count should be copied from the "Showing..." line displayed above.
Historical note: Prior to 10-Jul-2012, the Extrasolar Planets Encyclopaedia displayed this data in a different format, and a different procedure was used to update this template. See a version of this documentation page from before that date for the older procedure.