Template:Navsource/doc

&#x3c;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --&#x3e;

Usage
This template is designed to make an easy external link to a ship's page at Navsource.com

Formal usage

 * &#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e; where URLcode is extracted from the navsource.com URL (see below) and Shipname is the optional, unformatted name of the ship.

URLcode
To obtain the URLcode parameter value:
 * 1) Find the navsource.com url.
 * The url for the USS Houston (CL-81) navsource page is &#x3c;code&#x3e;&#x3c;nowiki&#x3e;http://www.navsource.org/archives/04/081/04081.htm&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;
 * 1) The URLcode parameter value is that part of the URL between &#x3c;code&#x3e;&#x3c;nowiki&#x3e;archives/&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e; and &#x3c;code&#x3e;&#x3c;nowiki&#x3e;.htm&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;
 * In this example you would use &#x3c;code&#x3e;&#x3c;nowiki&#x3e;04/081/04081&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;

Shipname
This optional parameter provides the name of the ship in the rendered link. If omitted or left blank, the template uses the current page name in the link. If &#x3c;code&#x3e;Shipname&#x3c;/code&#x3e; parameter is one of the standard forms &#x3c;prefix&#x3e; &#x3c;name&#x3e; &#x3c;disambiguator&#x3e;; &#x3c;prefix&#x3e; &#x3c;name&#x3e;; or &#x3c;name&#x3e; &#x3c;disambiguator&#x3e;; or &#x3c;name&#x3e; where &#x3c;name&#x3e; is part of the article title; then will apply proper formatting to &#x3c;code&#x3e;Shipname&#x3c;/code&#x3e;.

Error messages
When cannot figure out how to format &#x3c;code&#x3e;Shipname&#x3c;/code&#x3e;, it will return the &#x3c;code&#x3e;Shipname&#x3c;/code&#x3e; in its original format along with an error message that may help to get the name right. If the name render's as you think it should add the parameter no to disable the error message.

&#x3c;!-- ==See also== --&#x3e; &#x3c;includeonly&#x3e;&#x3c;/includeonly&#x3e;