Difference between revisions of "Template:MPC/doc"

From blackwiki
Jump to navigation Jump to search
imported>Huntster
imported>Tom.Reding
m (Update to {{MPC}})
Line 7: Line 7:
  
 
Note: not replacing white spaces with a plus sign (+) may result in URL corruption or a link to an erroneous object view.  
 
Note: not replacing white spaces with a plus sign (+) may result in URL corruption or a link to an erroneous object view.  
 
Also, do not confuse this template with {{tl|MPC}}.
 
  
 
This template accepts 2 unnamed parameters. The required first parameter is the minor planet's unique identifier. The optional second parameter is replacement wikilink text.
 
This template accepts 2 unnamed parameters. The required first parameter is the minor planet's unique identifier. The optional second parameter is replacement wikilink text.
Line 16: Line 14:
 
==== Numbered minor planets ====
 
==== Numbered minor planets ====
 
For numbered minor planets, simply use its number:
 
For numbered minor planets, simply use its number:
* <code><nowiki>{{MPCdb|75482}}</nowiki></code> produces {{MPCdb|75482}}, a link to MPC's corresponding page for {{mpl|(75482) 1999 XC|173}}
+
* <code><nowiki>{{MPC|75482}}</nowiki></code> produces {{MPC|75482}}, a link to MPC's corresponding page for {{mpl|(75482) 1999 XC|173}}
* <code><nowiki>{{MPCdb|75482|(75482) 1999 XC173}}</nowiki></code> produces {{MPCdb|75482|(75482) 1999 XC173}}
+
* <code><nowiki>{{MPC|75482|(75482) 1999 XC173}}</nowiki></code> produces {{MPC|75482|(75482) 1999 XC173}}
  
 
==== Unnumbered minor planets ====
 
==== Unnumbered minor planets ====
 
For unnumbered minor planets, use a plus-sign (+) between the numeric and alphanumeric part of the [[Provisional designation in astronomy#Minor planets|provisional designation]]:  
 
For unnumbered minor planets, use a plus-sign (+) between the numeric and alphanumeric part of the [[Provisional designation in astronomy#Minor planets|provisional designation]]:  
* <code><nowiki>{{MPCdb|2010+JL88}}</nowiki></code> produces {{MPCdb|2010+JL88}}, a link to MPC's corresponding page for {{mpl|2010 JL|88}}
+
* <code><nowiki>{{MPC|2010+JL88}}</nowiki></code> produces {{MPC|2010+JL88}}, a link to MPC's corresponding page for {{mpl|2010 JL|88}}
* <code><nowiki>{{MPCdb|2010+JL88|2010 JL88}}</nowiki></code> produces {{MPCdb|2010+JL88|2010 JL88}}
+
* <code><nowiki>{{MPC|2010+JL88|2010 JL88}}</nowiki></code> produces {{MPC|2010+JL88|2010 JL88}}
  
 
==== Comets ====
 
==== Comets ====
 
For comets, also use a plus sign (+) instead of white spaces:
 
For comets, also use a plus sign (+) instead of white spaces:
* <code><nowiki>{{MPCdb|P/2011+NO1}}</nowiki></code> produces {{MPCdb|P/2011+NO1}}, an external link to MPC's corresponding page for [[P/2011 NO1 (Elenin)]] (i.e. [[P/2011 NO1]])
+
* <code><nowiki>{{MPC|P/2011+NO1}}</nowiki></code> produces {{MPC|P/2011+NO1}}, an external link to MPC's corresponding page for [[P/2011 NO1 (Elenin)]] (i.e. [[P/2011 NO1]])
* <code><nowiki>{{MPCdb|P/2011+NO1|P/2011 NO1}}</nowiki></code> produces {{MPCdb|P/2011+NO1|P/2011 NO1}}
+
* <code><nowiki>{{MPC|P/2011+NO1|P/2011 NO1}}</nowiki></code> produces {{MPC|P/2011+NO1|P/2011 NO1}}
 
For [[List of numbered comets|numbered comets]] do not add the name part of the comet's designation:
 
For [[List of numbered comets|numbered comets]] do not add the name part of the comet's designation:
* <code><nowiki>{{MPCdb|46P}}</nowiki></code> produces {{MPCdb|46P}}, an external link to MPC's corresponding page for [[46P/Wirtanen]]
+
* <code><nowiki>{{MPC|46P}}</nowiki></code> produces {{MPC|46P}}, an external link to MPC's corresponding page for [[46P/Wirtanen]]
* <code><nowiki>{{MPCdb|46P|46P}}</nowiki></code> produces {{MPCdb|46P|46P}}
+
* <code><nowiki>{{MPC|46P|46P}}</nowiki></code> produces {{MPC|46P|46P}}
  
 
== See also ==
 
== See also ==

Revision as of 21:39, 7 October 2016

Description

This template creates an external link to the Minor Planet Center's (MPC) object page for a specific minor planet, based on its number or provisional designation. The template can also be used for comets. The MPC object page is a summary page of a body's discovery, orbital, and observational data. It is displayed when using the MPC Database Search engine for a single object search.

Usage

Note: not replacing white spaces with a plus sign (+) may result in URL corruption or a link to an erroneous object view.

This template accepts 2 unnamed parameters. The required first parameter is the minor planet's unique identifier. The optional second parameter is replacement wikilink text.

Examples

Numbered minor planets

For numbered minor planets, simply use its number:

Unnumbered minor planets

For unnumbered minor planets, use a plus-sign (+) between the numeric and alphanumeric part of the provisional designation:

  • {{MPC|2010+JL88}} produces MPC, a link to MPC's corresponding page for Template:Mpl
  • {{MPC|2010+JL88|2010 JL88}} produces 2010 JL88

Comets

For comets, also use a plus sign (+) instead of white spaces:

For numbered comets do not add the name part of the comet's designation:

  • {{MPC|46P}} produces MPC, an external link to MPC's corresponding page for 46P/Wirtanen
  • {{MPC|46P|46P}} produces 46P

See also