Template:Clyde ships/doc

From blackwiki
Jump to navigation Jump to search

Template:Uses Wikidata


The Caledonian Maritime Research Trust has a database of ships built in scotland. This template generates an external link to a specific ship on that database.

Usage

One parameter:

{{Clyde ships | ID }}
{{Clyde ships | id= ID }}

Two parameters:

{{Clyde ships | ID | NAME }}
{{Clyde ships | id= ID | name= NAME }}

Instructions

  1. Go to Template:URL and search for the ship you want
  2. Copy the number (ref) to the left of the ship's name
  3. Add to the external links section the text:
    {{Clyde ships|id=#####|name=Name}}
    where "#####" is the number you've copied, and "Name" is the ship's name

One parameter

If only the id parameter is used the name parameter defaults to the name of the page on which the template is placed. Usage:

{{Clyde ships | 2183 }}
{{Clyde ships | id= 2183 }}

Output:

Details of Template:PAGENAMEBASE at the Caledonian Maritime Research Trust's database of Scottish built ships.
Details of Template:PAGENAMEBASE at the Caledonian Maritime Research Trust's database of Scottish built ships.

Two parameters

Usage:

{{Clyde ships | 2183 | Virginia }}
{{Clyde ships | id= 2183 | name= Virginia }}

Output:

Details of Virginia at the Caledonian Maritime Research Trust's database of Scottish built ships.
Details of Virginia at the Caledonian Maritime Research Trust's database of Scottish built ships.

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Clyde ships

This template generates an external link to the database of ships at the Caledonian Maritime Research Trust.

Template parameters

ParameterDescriptionTypeStatus
ID1 id

ID number used in the URL, including any leading zeros.

Numberrequired
Name2 name

Name displayed in the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.

Stringoptional