Difference between revisions of "Template:LCDB/doc"

From blackwiki
Jump to navigation Jump to search
imported>Rfassbind
m (→‎See also: {{Minor planet link templates/See also}})
imported>Rfassbind
(revise and simplify since passing name is no longer an option)
Line 6: Line 6:
  
 
== Usage ==  
 
== Usage ==  
* The ''1st parameter'' is for the body's number (use <code>0</code> if unnumbered)
+
* The ''1st parameter'' is for the minor planet's ''number''  (use <code>0</code> if unnumbered)
* The ''2nd parameter'' is for the body's name (optional for numbered bodies; ''required'' for unnumbered bodies)
+
* The ''2nd parameter'' is for the minor planet's ''provisional designation'' (use only if unnumbered)
''Important'': spaces in names and [[Provisional designation in astronomy#Minor planets|provisional designations]] must be replaced with <code>+</code> or with <code>%20</code> ''(see examples below)''.
 
  
; For numbered bodies, use:
+
== Examples ==
* <code><nowiki>{{LCDB|1663}}</nowiki></code> produces: {{LCDB|1663}}
+
; For [[1222 Tina]] (numbered), use:
* <code><nowiki>{{LCDB|1663|van+den+Bos}}</nowiki></code> produces: {{LCDB|1663|van+den+Bos}}
+
* <code><nowiki>{{LCDB|1222}}</nowiki></code> – This produces the following external link → {{LCDB|1222}}
 
+
; For [[2004 XP14]] (unnumbered), use:
Both links are identical. The 2nd parameter is optional. If used, the title in the external page changes from "LCDB Data for (1663)" to "LCDB Data for (1663) van den Bos". Also, it is best to write minor planet names in plain ASCII, as [[diacritics]] need a [[percent-encoding]] (url-encoding).
+
* <code><nowiki>{{LCDB|0|2004+XP14}}</nowiki></code> – This produces the following external link → {{LCDB|0|2004+XP14}}
 
 
; For unnumbered bodies, use:
 
* <code><nowiki>{{LCDB|0|2004+XP14}}</nowiki></code> produces: {{LCDB|0|2004+XP14}}
 
 
 
Note: the 2nd parameter for unnumbered minor planets is not optional, since the number part is always zero. Also, custom designated LCDB-entries are formatted identically, i.e. use <code><nowiki>{{LCDB|0|Derm4c}}</nowiki></code> to produce a link to "Derm4c" ({{LCDB|0|Derm4c}}).
 
  
 
== Notes ==
 
== Notes ==
 
+
* ''[[Provisional designation in astronomy#Minor planets|Provisional designations]]'': spaces must be replaced with <code>+</code> or with <code>%20</code> ''(see examples below)''.
The target website at LCDB uses a non-UTF-8 encoding format. This makes the use of the [[mw:Help:Magic words#URL data|magic word]] {{tlf|urlencode:}} impossible.
+
* The 2nd parameter is optional for numbered minor planets, but required for unnumbered bodies, since their number part is always zero.
* Use [http://www.degraeve.com/reference/urlencoding.php this] map-table to encode non-ASCII (characters 128 to 256 in the ISO 8859-1, i.e. latin-1 charset). For example, use {{tlx|LCDB|2099|%D6pik}} to produce a properly displayed name for [[2099 Öpik]] (compare {{LCDB|2099|Öpik}} with {{LCDB|2099|%D6pik}}). Characters other than those contained in the ISO 8859-1/latin-1 set can ''not'' be properly displayed at LCDB.
+
* For custom designated LCDB-entries are formatted identically, i.e. use <code><nowiki>{{LCDB|0|Derm4c}}</nowiki></code> to produce a link to "Derm4c" ({{LCDB|0|Derm4c}}).
* In case the LCDB website switches to UTF-8 in the future, this template may be amended with the url encoding magic word. In this case make sure that already used {{tlf|LCDB}} instances containing %-encoding will also be amended.
+
* The target website at LCDB uses a non-UTF-8 encoding format. This makes the use of the [[mw:Help:Magic words#URL data|magic word]] {{tlf|urlencode:}} impossible.
  
 
== See also ==
 
== See also ==

Revision as of 19:55, 18 February 2020

Description

This template creates an external link for a given minor planet to Brian D. Warner's Light Curve Data Base (LCDB) at www.minorplanet.info, which follows the ALCDEF-specification (see "The Asteroid Lightcurve Data Exchange Format Standard", documentation). As of 2018, the LCDB contains photometric data, in particular, lightcurve measurements, for approximately 16,000 minor planets.

Usage

  • The 1st parameter is for the minor planet's number (use 0 if unnumbered)
  • The 2nd parameter is for the minor planet's provisional designation (use only if unnumbered)

Examples

For 1222 Tina (numbered), use
  • {{LCDB|1222}} – This produces the following external link → LCDB
For 2004 XP14 (unnumbered), use
  • {{LCDB|0|2004+XP14}} – This produces the following external link → LCDB

Notes

  • Provisional designations: spaces must be replaced with + or with %20 (see examples below).
  • The 2nd parameter is optional for numbered minor planets, but required for unnumbered bodies, since their number part is always zero.
  • For custom designated LCDB-entries are formatted identically, i.e. use {{LCDB|0|Derm4c}} to produce a link to "Derm4c" (LCDB).
  • The target website at LCDB uses a non-UTF-8 encoding format. This makes the use of the magic word {{urlencode:}} impossible.

See also

Template:Minor planet link templates/See also