Difference between revisions of "Template:LCDB/doc"
imported>Rfassbind m (→Description: revise, +link > http://www.minorplanet.info) |
imported>Rfassbind m (→See also: {{Minor planet link templates/See also}}) |
||
| Line 28: | Line 28: | ||
== See also == | == See also == | ||
| − | {{Minor planet templates/See also}} | + | {{Minor planet link templates/See also}} |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
Revision as of 12:45, 5 November 2019
| 40px | This is a documentation subpage for Template:LCDB. It contains usage information, categories and other content that is not part of the original template page. |
Contents
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 body's number (use
0if unnumbered) - The 2nd parameter is for the body's name (optional for numbered bodies; required for unnumbered bodies)
Important: spaces in names and provisional designations must be replaced with + or with %20 (see examples below).
- For numbered bodies, 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).
- For unnumbered bodies, use
{{LCDB|0|2004+XP14}}produces: LCDB
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 {{LCDB|0|Derm4c}} to produce a link to "Derm4c" (LCDB).
Notes
The target website at LCDB uses a non-UTF-8 encoding format. This makes the use of the magic word {{urlencode:}} impossible.
- Use this map-table to encode non-ASCII (characters 128 to 256 in the ISO 8859-1, i.e. latin-1 charset). For example, use
{{LCDB|2099|%D6pik}}to produce a properly displayed name for 2099 Öpik (compare LCDB with LCDB). Characters other than those contained in the ISO 8859-1/latin-1 set can not be properly displayed at LCDB. - 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 {{LCDB}} instances containing %-encoding will also be amended.
See also
Template:Minor planet link templates/See also