This template links to an unslashed target page [[ MS Antenor (1957) ]] and shows the slash: M/S Antenor (1957)
| This subpage Template:M/S 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 [[ MS Antenor (1957) ]] and shows the slash: M/S Antenor (1957)
{{ship|S/Y|Manitou}} → S/Y Manitou{{M/S|Ship Name}}{{M/S|Ship Name|ID}}, where ID can be the hull number, launch year, or pennant number, as specified in the article title.| Template usage | Equivalent wikicode | Final result |
|---|---|---|
{{M/S|Antenor|1957}}
|
[[MS Antenor (1957)|M/S ''Antenor'' (1957)]]
|
M/S Antenor (1957) |
{{M/S|Queen Victoria|ship}}
|
[[MS Queen Victoria (ship)|M/S ''Queen Victoria'' (ship)]]
|
M/S Queen Victoria (ship) |
{{M/S|Princess of Norway}}
|
[[MS Princess of Norway|M/S ''Princess of Norway'']]
|
M/S Princess of Norway |
By default, the wikilink is build like this:
{{M/S|Antenor|1957}}, the targetpage is[[MS Antenor (1957)]].[[targetpage|label]][[MS Antenor (1957)|M/S ''Antenor'' (1957)]], showing as: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:
{{MS|Antenor|1957|2}} →[[MS Antenor (1957)|''Antenor'']] →The options are:
| Value | Will show | Example | Wikilink [[targetpage|label]] | Shows |
|---|---|---|---|---|
| (default) | PREFIX name (ID) | {{M/S|Antenor|1957}} | [[MS Antenor (1957)|M/S ''Antenor'' (1957)]] | M/S Antenor (1957) |
| 1 | ID | {{M/S|Antenor|1957|1}} | [[MS Antenor (1957)|''1957'']] | 1957 |
| 2 | name | {{M/S|Antenor|1957|2}} | [[MS Antenor (1957)|''Antenor'']] | Antenor |
| 3 | name (ID) | {{M/S|Antenor|1957|3}} | [[MS Antenor (1957)|''Antenor'' (1957)]] | Antenor (1957) |
| 4 (dflt) | PREFIX name (ID) | {{M/S|Antenor|1957|4}} | [[MS Antenor (1957)|M/S ''Antenor'' (1957)]] | M/S Antenor (1957) |
| 5 | PREFIX ID | {{M/S|Antenor|1957|5}} | [[MS Antenor (1957)|M/S ''1957'']] | M/S 1957 |
| 6 | PREFIX name | {{M/S|Antenor|1957|6}} | [[MS Antenor (1957)|M/S ''Antenor'']] | M/S Antenor |
TemplateData
| |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
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
| |||||||||||||||||||||||||
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.