Difference between revisions of "Template:Extrasolar planet counts"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
(put everything in one place (subpage))
imported>Primefac
(all of the text relating to updating the raw numbers has been moved to the /numbers subpage doc)
Line 1: Line 1:
<!--{{Extrasolar planet counts}} begin--><includeonly><!--
+
{{#switch: {{{1|<noinclude>full</noinclude>}}}
 
+
  | asof = {{Extrasolar planet counts/numbers|1|{{{2|}}}}}
## This 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.
 
 
 
## param 1 specifies the parameter to be inserted:
 
##    asof - the date as of which the data is valid
 
##      param 2 on asof specifies the date format, as used in template:date
 
##    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
 
 
 
## These numbers are sourced from the Interactive Extra-solar Planets Catalog, http://exoplanet.eu/catalog.php
 
## In the switch statement below, asof and planet_count should be copied directly from the first few lines ("update"
 
## and "all candidates detected").  system_count and multiplanetsystem_count must be totaled manually from the four
 
## categories listed:
 
##    Candidates detected by radial velocity or astrometry
 
##    Candidates detected by microlensing
 
##    Candidates detected by imaging
 
##    Candidates detected by timing
 
## Note: do not add the "transiting planet" subcategory numbers - these numbers are already included in the "Candidates
 
## detected by radial velocity or astrometry" category.
 
 
 
-->{{#switch: {{{1|}}}
 
  | asof = {{Extrasolar planet counts/numbers|1}}
 
 
  | planet_count = {{Extrasolar planet counts/numbers|2}}
 
  | planet_count = {{Extrasolar planet counts/numbers|2}}
 
  | system_count = {{Extrasolar planet counts/numbers|3}}
 
  | system_count = {{Extrasolar planet counts/numbers|3}}
Line 30: Line 6:
 
  | ref = {{Extrasolar planet counts/numbers|5}}
 
  | ref = {{Extrasolar planet counts/numbers|5}}
 
  | full = As of {{Extrasolar planet counts/numbers|1}}, there are {{Extrasolar planet counts/numbers|2}} [[exoplanet|planets]] in {{Extrasolar planet counts/numbers|3}} [[planetary system|systems]], with {{Extrasolar planet counts/numbers|4}} [[List of multiplanetary systems|systems]] having more than one [[planet]].{{Extrasolar planet counts/numbers|5}}
 
  | full = As of {{Extrasolar planet counts/numbers|1}}, there are {{Extrasolar planet counts/numbers|2}} [[exoplanet|planets]] in {{Extrasolar planet counts/numbers|3}} [[planetary system|systems]], with {{Extrasolar planet counts/numbers|4}} [[List of multiplanetary systems|systems]] having more than one [[planet]].{{Extrasolar planet counts/numbers|5}}
  | #default = {{error|invalid parameter}} }}<!--
+
  | #default = {{error|invalid parameter}}
 
+
}}<noinclude>
--></includeonly><!--{{Extrasolar planet counts}} end--><noinclude><!--
 
 
 
## dynamic example (display current values)
 
 
 
-->{{Extrasolar planet counts|full}}
 
 
 
 
{{documentation}}
 
{{documentation}}
NOTE: May need to {{purge}} this page to clear the [[WP:Purge|Wikipedia cache]].
 
 
{{Template reference list}}
 
{{Template reference list}}
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->  
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->  
 
 
</noinclude>
 
</noinclude>

Revision as of 15:13, 1 October 2017

As of 1 January 2021, there are 4,395 planets in 3,242 systems, with 720 systems having more than one planet.[1]

Template documentation[view] [edit] [history] [purge]

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:T 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
  • ref - adds a reference to http://exoplanet.eu/catalog/
  • 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.

Click here to update the data. The numbers can be updated by locating the switch statement in the template source code, and updating the four data items therein.

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.

no:Mal:Antall eksoplaneter

References

  1. Schneider, J. "Interactive Extra-solar Planets Catalog". The Extrasolar Planets Encyclopedia. Retrieved 1 January 2021.