Difference between revisions of "Template:IMO Number"

From blackwiki
Jump to navigation Jump to search
imported>Courcelles
m (Protected Template:IMO Number: Batch semi-protection of highly visible templates listed on Wikipedia:Database reports/Unprotected templates with many transclusions/4 Any that were full-protected I will restore. using TW ([edit=autoconfirmed)
imported>Huntster
(Revert; link was okay.)
 
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>[[Category:IMO Number|{{{1}}}]] [[IMO ship identification number|IMO number:]] {{{1}}}</includeonly><noinclude>{{documentation}}</noinclude>
+
<includeonly>{{ns0|[[Category:IMO numbers|{{{1}}}]]}}{{#ifeq:{{{disp|}}}|no||[[IMO number]]:&nbsp;}}{{#ifeq: {{{link|}}} | no | {{{1}}} | [https://www.marinetraffic.com/ais/details/ships/imo:{{{1}}} {{{1}}}]}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 19:50, 13 December 2018

Template documentation[view] [edit] [history] [purge]

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