Template:M/V
![]() | This subpage Template:M/V is not related to parent page Template:M. It is located here for technical reasons (having a "/" slash in its title). See parent template {{Ship}} (talk). |
This template links to an unslashed target page [[ MV Aurora (2000) ]], but it shows the slash: "M/V": M/V Aurora (2000)
Usage
change- To show "MV" (unslashed), use {{MV}}: MV Aurora (2000)
- When the target pagename has a "/" slash, use {{Ship}}:
- Target: [[ S/Y Manitou ]]
- Use:
{{ship|S/Y|Manitou}}
→ S/Y Manitou
Usage
changeThis is a typing short cut for linking to steamship articles named in the format "MV Shipname (year)", showing "M/V". Since ship names are italicized in article text, linking to them in the usual manner means typing everything twice, such as [[MV Shipname (ID)|M/V ''Shipname'' (ID)]]. This template halves that to {{M/V|Shipname|ID}}.
Formal Usage
change{{M/V|Ship Name}}
{{M/V|Ship Name|ID}}
, where ID can be the hull number, launch year, or pennant number, as specified in the article title.
Examples
changeTemplate usage | Equivalent wikicode | Final result |
---|---|---|
{{M/V|Aurora|2000}}
|
[[MV Aurora (2000)|M/V ''Aurora'' (2000)]]
|
M/V Aurora (2000) |
{{M/V|Queen Victoria|ship}}
|
[[MV Queen Victoria (ship)|M/V ''Queen Victoria'' (ship)]]
|
M/V Queen Victoria (ship) |
{{M/V|Princess of Norway}}
|
[[MV Princess of Norway|M/V ''Princess of Norway'']]
|
M/V Princess of Norway |
Label format options
change- To show "M/V", use {{M/V}}: M/V Aurora (2000)
- To link to S/Y Manitou, use {{Ship|S/Y|Manitou}}
By default, the wikilink is build like this:
{{M/V|Aurora|2000}}
, the targetpage is
[[MV Aurora (2000)]]
.- Then the template by default adds the formatted label:
[[targetpage|label]]
[[MV Aurora (2000)|M/V ''Aurora'' (2000)]]
, showing as:- M/V Aurora (2000).
The default label can be changed with a simple parameter. The extra third position, unnamed parameter allows setting which elements of the ship's full name are shown in the wikilink. It sets the label in the link:
For example, in your article, the hull number (disambiguator) may not be needed to show. In that case, add option |2
, and the result is:
{{MV|Aurora|2000|2}}
→
[[MV Aurora (2000)|''Aurora'']]
→- Aurora
The options are:
Value | Will show | Example | Wikilink [[targetpage|label]] | Shows |
---|---|---|---|---|
(default) | PREFIX name (ID) | {{M/V|Aurora|2000}} | [[MV Aurora (2000)|M/V ''Aurora'' (2000)]] | M/V Aurora (2000) |
1 | ID | {{M/V|Aurora|2000|1}} | [[MV Aurora (2000)|''2000'']] | 2000 |
2 | name | {{M/V|Aurora|2000|2}} | [[MV Aurora (2000)|''Aurora'']] | Aurora |
3 | name (ID) | {{M/V|Aurora|2000|3}} | [[MV Aurora (2000)|''Aurora'' (2000)]] | Aurora (2000) |
4 (dflt) | PREFIX name (ID) | {{M/V|Aurora|2000|4}} | [[MV Aurora (2000)|M/V ''Aurora'' (2000)]] | M/V Aurora (2000) |
5 | PREFIX ID | {{M/V|Aurora|2000|5}} | [[MV Aurora (2000)|M/V ''2000'']] | M/V 2000 |
6 | PREFIX name | {{M/V|Aurora|2000|6}} | [[MV Aurora (2000)|M/V ''Aurora'']] | M/V Aurora |
- Note: options default (=blank), 2 and 6 are most often used.
TemplateData
changeTemplateData
| |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:M in articles based on its TemplateData.
TemplateData for M This template provides a wikilink to a ship's page, with label options
|