Difference between revisions of "Template:MMSI Number"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(cat in ns0 only)
imported>Ahecht
(update link scheme)
Line 1: Line 1:
<includeonly>{{ns0|[[Category:MMSI Number|{{{1}}}]]}} [[Maritime Mobile Service Identity|MMSI number]]: {{#ifeq: {{{link|}}} | no | {{{1}}} | [http://www.marinetraffic.com/ais/shipdetails.aspx?mmsi={{{1}}} {{{1}}}]}}</includeonly><noinclude>{{documentation}}</noinclude>
+
<includeonly>{{ns0|[[Category:MMSI Number|{{{1}}}]]}} [[Maritime Mobile Service Identity|MMSI number]]: {{#ifeq: {{{link|}}} | no | {{{1}}} | [http://www.marinetraffic.com/ais/details/ships/{{{1}}} {{{1}}}]}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 16:21, 7 May 2016

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

Template:Uses Wikidata

Purpose

Use the ship's MMSI number to create a link to Marinetraffic.com where the ship's movements can be tracked. This template also adds the article to Category:MMSI Number.

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 MMSI number:

{{MMSI Number|mmsi}}

Example: for the article on Black Watch, {{MMSI Number|311166000}} results in Template:Ns0 MMSI number: 311166000.

See also

Template:Wikidata property

Template:Psix name/related