Difference between revisions of "Template:IMO Number/doc"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(change cat)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
  
This template is used to add a link for the [[IMO ship identification number]], and also to add the article to [[:Category:IMO Number]] for use with the <code>Ship identification</code> parameter of {{tl|Infobox ship career}}.
+
== Purpose ==
 +
This template is used to add an [[IMO number]] to a ship article's infobox, and to add the article to [[:Category:IMO numbers]]. It additionally links the IMO number to [http://www.marinetraffic.com Marinetraffic.com].
  
=== Usage ===
+
This template is intended to be used in the {{para|Ship identification}} field in {{tl|Infobox ship career}}.
Add the ship's [[International Maritime Organization]] (IMO) identification number to the <code>number</code> parameter within the <code>Ship identification</code> parameter of {{tl|Infobox ship career}}:
 
  
<pre>
+
== Usage ==
| Ship identification = {{IMO Number|number}}
+
The only parameter in the template is the ship's IMO number:
</pre>
 
Articles marked with this template will be added to [[:Category:IMO Number]].
 
  
Editors may also add {{tl|MMSI Number}} for vessels which have been issued a [[Maritime Mobile Service Identity]] number.
+
<kbd><nowiki>
 +
{{IMO Number|number}}
 +
</nowiki></kbd>
  
=== See also ===
+
Example: for the article on [[MS Black Watch (1971)|''Black Watch'']], <kbd><nowiki>{{IMO Number|7108930}}</nowiki></kbd> results in {{IMO Number|7108930}}.
*[[Template:Infobox ship begin]]
 
*[[:Category:Ship identification numbers]]
 
  
<includeonly>
+
If only number is required (e.g. in a table), the text can be hidden with the following syntax:
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
 
 +
<kbd><nowiki>
 +
{{IMO Number|number|disp=no}}
 +
</nowiki></kbd>
 +
 
 +
Example: <kbd><nowiki>{{IMO Number|7108930|disp=no}}</nowiki></kbd> results in {{IMO Number|7108930|disp=no}}.
 +
 
 +
== See also ==
 +
{{Psix name/related}}
 +
<includeonly>{{Sandbox other||
 
[[Category:Ship templates]]
 
[[Category:Ship templates]]
[[Category:IMO Number|*]]
+
[[Category:IMO numbers|*]]
</includeonly>
+
}}</includeonly>

Latest revision as of 17:24, 25 April 2020

Purpose

This template is used to add an IMO number to a ship article's infobox, and to add the article to Category:IMO numbers. It additionally links the IMO number to Marinetraffic.com.

This template is intended to be used in the |Ship identification= field in {{Infobox ship career}}.

Usage

The only parameter in the template is the ship's IMO number:

{{IMO Number|number}}

Example: for the article on Black Watch, {{IMO Number|7108930}} results in Template:Ns0IMO number7108930.

If only number is required (e.g. in a table), the text can be hidden with the following syntax:

{{IMO Number|number|disp=no}}

Example: {{IMO Number|7108930|disp=no}} results in Template:Ns07108930.

See also

Template:Psix name/related