Difference between revisions of "Template:Extrasolar planet counts/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
imported>Vanisaac
m (→‎Data source: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 28: Line 28:
 
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.
 
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.
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:Astronomy templates|{{PAGENAME}}]]
 
[[Category:Astronomy templates|{{PAGENAME}}]]
  
 
[[no:Mal:Antall eksoplaneter]]
 
[[no:Mal:Antall eksoplaneter]]
</includeonly>
+
}}</includeonly>

Latest revision as of 04:11, 25 April 2020

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.