Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Error messages  





3 See also  














Template:Naval Vessel Register service craft URL







 

Edit links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


The purpose of this template is to have a single location for the Naval Vessel Register (NVR) service craft detail base url as a method of combating link rot.

Usage[edit]

The template takes two parameters:

|id= – (required) the ship's case-insensitive hull classification symbol in one of five forms:
  1. YTB-760 – the preferred format because it matches the format for hull classification symbols generally used for US Navy ships throughout Wikipedia
  2. YTB 760
  3. YTB760
  4. YTB_760
  5. YTB_760_5292 – the NVR file name format as of September 2017
There are exceptions. NVR has separate pages for some single and some multiple sections of some floating drydocks. For these, this module adopts a convention similarly used by NVR where each section is distinguished by a letter designator; that letter must be appended to the hull classification symbol used in this parameter
|title= – (optional) a title or label for an external link

Parameter names are not required. When not used, the positional order is:

{{Naval Vessel Register service craft URL|identifier|title}}

When |title= is empty or omitted, the template produces a url suitable for use in Citation Style 1 and Citation Style 2 templates.

{{cite web |title=Menominee |website=Naval Vessel Register |url={{Naval Vessel Register service craft URL|YT_807}} |accessdate=1 October 2016}}
"Menominee". Naval Vessel Register. Retrieved 1 October 2016.

With a title, the template produces a properly marked up external wikilink:

{{Naval Vessel Register service craft URL|YT_807|''Menominee''}}
[http://www.nvr.navy.mil/SHIPDETAILS/SHIPSDETAIL_YT_807.HTML ''Menominee'']
Menominee

For floating drydock sections:

{{Naval Vessel Register service craft URL|AFDB7F|''Los Alamos''}}
[http://www.nvr.navy.mil/SHIPDETAILS/SHIPSDETAIL_AFDB_7_1549.HTML ''Los Alamos'']
Los Alamos

Error messages[edit]

Module:Naval Vessel Register URL returns error messages when it cannot return a link into the NVR. These error messages are:

  1. required parameter missing – displayed when |id= is empty or omitted from the template call; add a hull classification symbol
  2. malformed hull classification symbol: id – the value assigned to |id= is not one of the supported hull classification symbol forms; use a supported form
  3. unable to find group: ['hull type'] in Module:Naval Vessel Register URL/data nvr_srv_craft_id – the data tables used by the template are grouped by hull type (the letter portion of a hull classification symbol). This error message indicates that the hull type could not be found in the data table. Check for a typo or, if a new hull type, add the hull type data to Module:Naval Vessel Register URL/data (further instructions there)
  4. unable to find hull classification symbol: [id] in Module:Naval Vessel Register URL/data nvr_srv_craft_id – the hull classification symbol value assigned to |id= was not found in the data tables; check for a typo in the number portion of the hull classification symbol or, if a new ship, add the ship data to Module:Naval Vessel Register URL/data (further instructions there)
  5. no identifier for hull classification symbol: [id] in Module:Naval Vessel Register URL/data nvr_srv_craft_id – the tables in Module:Naval Vessel Register URL/data have a listing for the ship but the listing is incomplete; add the missing data to Module:Naval Vessel Register URL/data (further instructions there)

Errors occurring on main-space pages are categorized at ‹The template Category link is being considered for merging.› Category:WPSHIPS:Template errors.

See also[edit]

  • t
  • e
  • type group template ref article example
    Dictionary of American Naval Fighting Ships (DANFS) (external link)
    source dictionary {{DANFS}} DANFS public domain attribution notice Public Domain This article incorporates text from the public domain Dictionary of American Naval Fighting Ships.
    source dictionary {{Cite DANFS}} DANFS material citation Cressman, Robert J. (2005-12-06). "Bridgeport". Dictionary of American Naval Fighting Ships. Navy Department, Naval History and Heritage Command. Retrieved 2016-09-15.
    Naval Vessel Register (NVR) (external link)
    source register {{NVR}} Naval Vessel Register, public domain attribution notice Public Domain 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
  • Category:Ship book citation templates‎ (5)

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Naval_Vessel_Register_service_craft_URL&oldid=984901760"

    Categories: 
    Lua-based templates
    Ship templates
    Hidden categories: 
    Wikipedia articles incorporating text from the Dictionary of American Naval Fighting Ships
    Wikipedia articles incorporating text from the Naval Vessel Register
     



    This page was last edited on 22 October 2020, at 19:47 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki