Difference between revisions of "Template:IMO Number/doc"
Jump to navigation
Jump to search
(Replaced obsolete HTML) |
|||
Line 10: | Line 10: | ||
The only parameter in the template is the ship's IMO number: | The only parameter in the template is the ship's IMO number: | ||
− | < | + | <kbd><nowiki> |
{{IMO Number|number}} | {{IMO Number|number}} | ||
− | </nowiki></ | + | </nowiki></kbd> |
− | Example: for the article on [[MS Black Watch|''Black Watch'']], < | + | Example: for the article on [[MS Black Watch|''Black Watch'']], <kbd><nowiki>{{IMO Number|7108930}}</nowiki></kbd> results in {{IMO Number|7108930}}. |
If only number is required (e.g. in a table), the text can be hidden with the following syntax: | If only number is required (e.g. in a table), the text can be hidden with the following syntax: | ||
− | < | + | <kbd><nowiki> |
{{IMO Number|number|disp=no}} | {{IMO Number|number|disp=no}} | ||
− | </nowiki></ | + | </nowiki></kbd> |
− | Example: < | + | Example: <kbd><nowiki>{{IMO Number|7108930|disp=no}}</nowiki></kbd> results in {{IMO Number|7108930|disp=no}}. |
== See also == | == See also == |
Revision as of 11:24, 24 March 2019
![]() | This is a documentation subpage for Template:IMO Number. It contains usage information, categories and other content that is not part of the original template page. |
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 number: 7108930.
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.