Difference between revisions of "Template:IMO Number/doc"
Jump to navigation
Jump to search
imported>Timrollpickering m (per WP:CFDS, replaced: IMO number → IMO numbers (12)) |
imported>Timrollpickering (Undid revision 873517737 by Timrollpickering (talk)) |
||
Line 3: | Line 3: | ||
== Purpose == | == Purpose == | ||
− | This template is used to add an [[IMO | + | This template is used to add an [[IMO numbers|IMO number]] to a ship article's infobox, and to add the article to [[:Category:IMO Number]]. It additionally links the IMO number to [http://www.marinetraffic.com Marinetraffic.com]. |
This template is intended to be used in the {{para|Ship identification}} field in {{tl|Infobox ship career}}. | This template is intended to be used in the {{para|Ship identification}} field in {{tl|Infobox ship career}}. | ||
== Usage == | == Usage == | ||
− | The only parameter in the template is the ship's IMO | + | The only parameter in the template is the ship's IMO number: |
<tt><nowiki> | <tt><nowiki> | ||
− | {{IMO | + | {{IMO Number|number}} |
</nowiki></tt> | </nowiki></tt> | ||
− | Example: for the article on [[Black Watch (ship)|''Black Watch'']], <tt><nowiki>{{IMO | + | Example: for the article on [[Black Watch (ship)|''Black Watch'']], <tt><nowiki>{{IMO Number|7108930}}</nowiki></tt> 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: | ||
<tt><nowiki> | <tt><nowiki> | ||
− | {{IMO | + | {{IMO Number|number|disp=no}} |
</nowiki></tt> | </nowiki></tt> | ||
− | Example: <tt><nowiki>{{IMO | + | Example: <tt><nowiki>{{IMO Number|7108930|disp=no}}</nowiki></tt> results in {{IMO Number|7108930|disp=no}}. |
== See also == | == See also == | ||
Line 28: | Line 28: | ||
<includeonly> | <includeonly> | ||
[[Category:Ship templates]] | [[Category:Ship templates]] | ||
− | [[Category:IMO | + | [[Category:IMO numbers|*]] |
</includeonly> | </includeonly> |
Revision as of 16:20, 13 December 2018
![]() | 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 Number. 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.