قالب:MS/doc
هذه صفحة توثيق فرعية لـ قالب:MS. تتضمن معلومات الاستعمال، التصنيفات وأي محتوى آخر ليس من محتويات الأصل لصفحة القالب. |
This template links to an unslashed prefix: "MS": إمإس Antenor (1957)
- To show "M/S", use {{M/S}}: قالب:M/S
- To link to S/Y Manitou, use {{Ship|S/Y|Manitou}}
Usage
This is a typing short cut for linking to steamship articles named in the format "MS Shipname (Year)". Since ship names are italicized in article text, linking to them in the usual manner means typing everything twice, such as [[MS Shipname (ID)|MS ''Shipname'' (ID)]]. This template halves that to {{MS|Shipname|ID}}.
Formal Usage
{{MS|Ship Name}}
{{MS|Ship Name|ID}}
, where ID can be the hull number, launch year, or pennant number, as specified in the article title.
Examples
Template usage | Equivalent wikicode | Final result |
---|---|---|
{{MS|Antenor|1957}} | [[MS Antenor (1957)|MS ''Antenor'' (1957)]] | إمإس Antenor (1957) |
{{MS|Queen Victoria|ship}} | [[MS Queen Victoria (ship)|MS ''Queen Victoria'' (ship)]] | إمإس Queen Victoria (ship) |
{{MS|Princess of Norway}} | [[MS Princess of Norway|MS ''Princess of Norway'']] | إمإس Princess of Norway |
Label format options
- To show "M/S", use {{M/S}}: قالب:M/S
- To link to S/Y Manitou, use {{Ship|S/Y|Manitou}}
By default, the wikilink is build like this:
{{MS|Antenor|1957}}
, the targetpage is
[[MS Antenor (1957)]]
.- Then the template by default adds the formatted label:
[[targetpage|label]]
[[MS Antenor (1957)|MS ''Antenor'' (1957)]]
, showing as:- إمإس Antenor (1957).
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'']]
→- Antenor
The options are:
Value | Will show | Example | Wikilink [[targetpage|label]] | Shows |
---|---|---|---|---|
(default) | PREFIX name (ID) | {{MS|Antenor|1957}} | [[MS Antenor (1957)|MS ''Antenor'' (1957)]] | إمإس Antenor (1957) |
1 | ID | {{MS|Antenor|1957|1}} | [[MS Antenor (1957)|1957]] | 1957 |
2 | name | {{MS|Antenor|1957|2}} | [[MS Antenor (1957)|''Antenor'']] | Antenor |
3 | name (ID) | {{MS|Antenor|1957|3}} | [[MS Antenor (1957)|''Antenor'' (1957)]] | Antenor (1957) |
4 (dflt) | PREFIX name (ID) | {{MS|Antenor|1957|4}} | [[MS Antenor (1957)|MS ''Antenor'' (1957)]] | Invalid Optional Parameter |
5 | PREFIX ID | {{MS|Antenor|1957|5}} | [[MS Antenor (1957)|MS ''1957'']] | إمإس (1957) |
6 | PREFIX name | {{MS|Antenor|1957|6}} | [[MS Antenor (1957)|MS ''Antenor'']] | إمإس Antenor |
- Note: usually, options default (=blank), 2 and 6 are used.
TemplateData
قالب:Ship/doc/fixed prefix: TemplateData
See also
WP:SHIPS shortcut templates:
- Class shortcuts
- Ship prefix shortcuts
-
- Generic ship prefixes
{{GTS}}
- Shortcut for linking to Gas Turbine Ship articles{{HSC}}
- Shortcut for linking to High Speed Craft articles{{MS}}
- Shortcut for Motor ship articles{{MV}}
- Shortcut for Merchant vessel (or "Motor vessel") articles{{SS}}
- Shortcut for Steam Ship articles{{ship}}
- Shortcut for linking ship articles
- Commonwealth ship prefixes
{{HMAS}}
- Shortcut for linking to Royal Australian Navy ship articles{{HMCS}}
- Shortcut for linking to Royal Canadian Navy ship articles{{HMS}}
- Shortcut for linking to Royal Navy ship articles{{RMS}}
- Shortcut for Royal Mail Ship articles
- United States ship prefixes
{{USAT}}
- Shortcut for United States Army Transport articles{{USCGC}}
- Shortcut for United States Coast Guard Cutter articles{{USNS}}
- Shortcut for United States Naval Ship articles{{USS}}
- Shortcut for United States Navy ship articles
- Other navies' prefixes
{{SMS}}
– Shortcut for Imperial German Navy and Austro-Hungarian Navy ships{{SMU}}
- Shortcut for U-boats of the Imperial German Navy and Austro-Hungarian Navy{{HNLMS}}
- Shortcut for Royal Netherlands Navy ships
- Generic ship prefixes
- Dictionary of American Naval Fighting Ships (DANFS) templates
-
{{DANFS}}
— notice for attribution public domain text{{Cite DANFS}}
— shortcut for citing DANFS material