Template:R/V/doc
This is a documentation subpage for Template:R/V. It contains usage information, categories and other content that is not part of the original template page. |
This subpage Template:R/V is not related to parent page Template:R. 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 [[ RV Vityaz (1939) ]], but it shows the slash: "R/V": R/V Vityaz (1939)
Usage
- To show "RV" (unslashed), use {{RV}}: RV Vityaz (1939)
- When the target pagename has a "/" slash, use {{Ship}}:
- Target: [[ S/Y Manitou ]]
- Use:
{{ship|S/Y|Manitou}}
→ S/Y Manitou
Usage
This is a typing short cut for linking to steamship articles named in the format "RV Shipname (year)", showing "R/V". Since ship names are italicized in article text, linking to them in the usual manner means typing everything twice, such as [[RV Shipname (ID)|R/V ''Shipname'' (ID)]]. This template halves that to {{R/V|Shipname|ID}}.
Formal Usage
{{R/V|Ship Name}}
{{R/V|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 |
---|---|---|
{{R/V|Vityaz|1939}}
|
[[RV Vityaz (1939)|R/V ''Vityaz'' (1939)]]
|
R/V Vityaz (1939) |
{{R/V|Queen Victoria|ship}}
|
[[RV Queen Victoria (ship)|R/V ''Queen Victoria'' (ship)]]
|
R/V Queen Victoria (ship) |
{{R/V|Princess of Norway}}
|
[[RV Princess of Norway|R/V ''Princess of Norway'']]
|
R/V Princess of Norway |
Label format options
- To show "R/V", use {{R/V}}: R/V Vityaz (1939)
- To link to S/Y Manitou, use {{Ship|S/Y|Manitou}}
By default, the wikilink is build like this:
{{R/V|Vityaz|1939}}
, the targetpage is
[[RV Vityaz (1939)]]
.- Then the template by default adds the formatted label:
[[targetpage|label]]
[[RV Vityaz (1939)|R/V ''Vityaz'' (1939)]]
, showing as:- R/V Vityaz (1939).
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:
{{RV|Vityaz|1939|2}}
→
[[RV Vityaz (1939)|''Vityaz'']]
→- Vityaz
The options are:
Value | Will show | Example | Wikilink [[targetpage|label]] | Shows |
---|---|---|---|---|
(default) | PREFIX name (ID) | {{R/V|Vityaz|1939}} | [[RV Vityaz (1939)|R/V ''Vityaz'' (1939)]] | R/V Vityaz (1939) |
1 | ID | {{R/V|Vityaz|1939|1}} | [[RV Vityaz (1939)|''1939'']] | 1939 |
2 | name | {{R/V|Vityaz|1939|2}} | [[RV Vityaz (1939)|''Vityaz'']] | Vityaz |
3 | name (ID) | {{R/V|Vityaz|1939|3}} | [[RV Vityaz (1939)|''Vityaz'' (1939)]] | Vityaz (1939) |
4 (dflt) | PREFIX name (ID) | {{R/V|Vityaz|1939|4}} | [[RV Vityaz (1939)|R/V ''Vityaz'' (1939)]] | R/V Vityaz (1939) |
5 | PREFIX ID | {{R/V|Vityaz|1939|5}} | [[RV Vityaz (1939)|R/V ''1939'']] | R/V 1939 |
6 | PREFIX name | {{R/V|Vityaz|1939|6}} | [[RV Vityaz (1939)|R/V ''Vityaz'']] | R/V Vityaz |
- Note: options default (=blank), 2 and 6 are most often used.
TemplateData
TemplateData
| |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
TemplateData for R/V This template provides a wikilink to a ship's page, with label options
|
See also
Template:WPSHIPS shortcut templates