Template:Cite Earth Impact DB
![]() | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Purpose
[edit]Provides an easy way to cite Earth Impact Database data.
The major advantage of this template is that the appearance of the citation will change to conform with {{Cite web}} which sees more frequent maintenance.
Pages using this template will automatically be added to Category:Earth Impact Database unless they use the nocat parameter.
Usage
[edit]Parameter | Instructions |
---|---|
{{cite Earth Impact DB | name = | date = | accessdate = | nocat = | linkname = | suffix = }} |
crater name from EID (Required) Date of publication (Recommended) Full retrieval date {Optional) 1 (Optional, omits category) alternate name to match EID URL (Sometimes required - when crater name doesn't match URL file name) html (Sometimes required - when .html suffix is used on a URL) |
The best procedure is to edit the entire page rather than just a section. The Earth Impact Database is inconsistent about naming pages so the links generated by this template will need to be verified and sometimes adjusted. Check the link in the page preview.
If the link isn't correct, follow these notes until the generated URL matches the page at the Earth Impact Database.
- The name parameter should be the name of the crater. Use the page title from Earth Impact Database. For example, on a page named "xxx crater", use "name = xxx". This won't always work since some page names are abbreviations. Also, multiple word names won't work. When the URL generation doesn't work for a particular page, use the linkname parameter to make it work.
- Use the linkname parameter to match the base name of the URL. That's the file name without the '.htm' or '.html' suffix. For multiple word names, use a single word made out of the name without spaces. For example, with the Amelia Creek crater, the linkname has to be set to "AmeliaCreek" to make the correct URL.
- If the filename suffix in the URL is anything but 'htm', then use the suffix parameter to set that. (Omit the leading dot from this string.) For example, with the Amelia Creek crater again, the suffix has to be set to "html" to make the correct URL.
Examples
[edit]{{Cite Earth Impact DB | name = Barringer | accessdate = 2024-08-18}}
produces:
"Barringer". Earth Impact Database. Planetary and Space Science Centre University of New Brunswick Fredericton. Retrieved 2024-08-18.