Template:Cite DANFS/doc
This is a documentation subpage for Template:Cite DANFS. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Usage
This template is used for citing the Dictionary of American Naval Fighting Ships (DANFS), particularly the online version found at the United States Navy Naval History & Heritage Command website at this address. Though the U.S. Navy version is generally preferred, other online versions of DANFS material may be cited with this template as well.
Important note
This template is not intended to replace the template {{DANFS}}. Where public domain material from the Dictionary of American Naval Fighting Ships is incorporated into an article {{DANFS}} must still be used in the article for the proper attribution of public domain text. (DANFS, as a work of the U.S. federal government, is in the public domain.)
Parameters
Required parameters
This template requires these parameters:
- title — the ship name. Will automatically format with italics
- url — the DANFS online URL. Can be from the NHC website (preferred) or elsewhere
Optional parameters
These optional parameters are similar to those in other citation templates:
- first, last OR author — used when there is a known author of a DANFS article (the optional authorlink will work for either)
- date — used when a date is provided. For DANFS, this is typically on new or newly updated entries.
- accessdate — the full retrieval date.
These optional parameters are specific to this template:
- short — when set to "on" (or "yes") provides a succinct entry; useful as a note in a Notes, Reference style, with a full (i.e. not using short) in the References section
- set short to "first" to display the full name of Dictionary of American Naval Fighting Ships
- link — when set to "off" (or "no") provides a full entry without wikilinks for the work title and publisher information; useful for second and additional uses to avoid overlinking within the references section
Note: if the "short" and "link" options are not necessary, leave the optional parameters completely out (i.e. don't put "short = off" or "link = on")
Examples
Example | Final result | |
---|---|---|
Typical usage | {{cite DANFS | title = Enterprise VII (CV-6) | url = https://www.history.navy.mil/research/histories/ship-histories/danfs/e/enterprise-cv-6-vii.html | accessdate = 2016-09-15 }} | Lua error: bad argument #1 to "get" (not a valid title). |
Known author and date | {{cite DANFS | last = Cressman | first = Robert J. | title = Bridgeport | url = https://www.history.navy.mil/research/histories/ship-histories/danfs/b/bridgeport-i.html | date = 2005-12-06 | accessdate = 2016-09-15}} | Lua error: bad argument #1 to "get" (not a valid title). |
Short version | {{cite DANFS | title = Enterprise VII (CV-6) | url = https://www.history.navy.mil/research/histories/ship-histories/danfs/e/enterprise-cv-6-vii.html| short = yes }} | Lua error: bad argument #1 to "get" (not a valid title). |
Unlinked usage | {{cite DANFS | title = Enterprise VII (CV-6) | url = https://www.history.navy.mil/research/histories/ship-histories/danfs/e/enterprise-cv-6-vii.html | link = off | accessdate = 2016-09-15 }} | Lua error: bad argument #1 to "get" (not a valid title). |
See also
type | group | template | ref article | example |
---|---|---|---|---|
Dictionary of American Naval Fighting Ships (DANFS) (external link) | ||||
source | dictionary | {{DANFS}} |
DANFS public domain attribution notice | This article incorporates text from the public domain Dictionary of American Naval Fighting Ships. |
source | dictionary | {{Cite DANFS}} |
DANFS material citation | Lua error: bad argument #1 to "get" (not a valid title). |
Naval Vessel Register (NVR) (external link) | ||||
source | register | {{NVR}} |
Naval Vessel Register, public domain attribution notice | This article includes information collected from the Naval Vessel Register, which, as a U.S. government publication, is in the public domain. |
source | register | {{NVR url}} |
creates urls for NVR ship details pages | |
source | register | {{NVR SC url}} |
creates urls for NVR service craft details pages | |