Difference between revisions of "Template:MMSI Number"

From blackwiki
Jump to navigation Jump to search
imported>Ahecht
(update link scheme)
imported>Pigsonthewing
(Use Wikidata value if no local value)
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/details/ships/mmsi:{{{1}}} {{{1}}}]}}</includeonly><noinclude>{{documentation}}</noinclude>
+
<includeonly>{{ns0|[[Category:MMSI Number|{{{1|{{#property:P587|missing from template MMSI Number}}}}}]]}} [[Maritime Mobile Service Identity|MMSI number]]: {{#ifeq: {{{link|}}} | no | {{{1|{{#property:P587}}}}} | [http://www.marinetraffic.com/ais/details/ships/mmsi:{{{1|{{#property:P587}}}}} {{{1|{{#property:P587}}}}}]}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 17:46, 21 August 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