Difference between revisions of "Template:Cite DANFS"

From blackwiki
Jump to navigation Jump to search
imported>Izno
(remove lint error (which is additionally causing bad metadata))
imported>Trappist the monk
 
Line 1: Line 1:
<includeonly>{{cite web
+
<includeonly>{{#invoke:template wrapper|wrap|_template=cite web |_exclude=short, link
| url = {{{url}}}
 
 
| title = {{#invoke:WPSHIPS utilities|cite_danfs_title|{{{title}}}}}
 
| title = {{#invoke:WPSHIPS utilities|cite_danfs_title|{{{title}}}}}
| accessdate = {{#if:{{{accessdate|}}}|{{{accessdate}}}}}
 
| author = {{#if:{{{author|}}}|{{{author}}}}}
 
| last = {{#if:{{{last|}}}|{{{last}}}}}
 
| first = {{#if:{{{first|}}}|{{{first}}}}}
 
| authorlink = {{#if:{{{authorlink|}}}|{{{authorlink}}}}}
 
| coauthors = {{#if:{{{coauthors|}}}|{{{coauthors}}}}}
 
| date = {{#if:{{{date|}}}|{{{date}}}}}
 
| year = {{#if:{{{year|}}}|{{{year}}}}}
 
| month = {{#if:{{{month|}}}|{{{month}}}}}
 
 
| work =  {{#if: {{{short|}}}
 
| work =  {{#if: {{{short|}}}
 
           | {{#switch:{{lc:{{{short|}}}}}
 
           | {{#switch:{{lc:{{{short|}}}}}
Line 31: Line 21:
 
               }}
 
               }}
 
               }}
 
               }}
| quote = {{#if:{{{quote|}}}|{{{quote}}}}}
 
| ref = {{#if:{{{ref|}}}|{{{ref}}}}}
 
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Latest revision as of 21:01, 21 August 2018

Template documentation[view] [edit] [history] [purge]

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 }} "Enterprise VII (CV-6)". Dictionary of American Naval Fighting Ships. Navy Department, Naval History and Heritage Command. Retrieved 2016-09-15.
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}} Cressman, Robert J. (2005-12-06). "Bridgeport". Dictionary of American Naval Fighting Ships. Navy Department, Naval History and Heritage Command. Retrieved 2016-09-15.
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 }} "Enterprise VII (CV-6)". DANFS.
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 }} "Enterprise VII (CV-6)". Dictionary of American Naval Fighting Ships. Navy Department, Naval History & Heritage Command. Retrieved 2016-09-15.

See also

Template:WPSHIPS Ship citation templates