Template:Clyde ships/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Clyde ships. It contains usage information, categories and other content that is not part of the original template page. |
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
- Go to Template:URL and search for the ship you want
- Copy the number (ref) to the left of the ship's name
- 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | 1 id | ID number used in the URL, including any leading zeros. | Number | required |
| Name | 2 name | Name displayed in the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation. | String | optional |