Template:S/V
This subpage Template:S/V is not related to parent page Template:S. 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 [[ SV Argo (1841) ]], but it shows the slash: "S/V": S/V Argo (1841)
Usage
change- To show "SV" (unslashed), use {{SV}}: SV Argo (1841)
- 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 "SV Shipname (year)", showing "S/V". Since ship names are italicized in article text, linking to them in the usual manner means typing everything twice, such as [[SV Shipname (ID)|S/V ''Shipname'' (ID)]]. This template halves that to {{S/V|Shipname|ID}}.
Formal Usage
change{{S/V|Ship Name}}
{{S/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 |
---|---|---|
{{S/V|Argo|1841}}
|
[[SV Argo (1841)|S/V ''Argo'' (1841)]]
|
S/V Argo (1841) |
{{S/V|Queen Victoria|ship}}
|
[[SV Queen Victoria (ship)|S/V ''Queen Victoria'' (ship)]]
|
S/V Queen Victoria (ship) |
{{S/V|Princess of Norway}}
|
[[SV Princess of Norway|S/V ''Princess of Norway'']]
|
S/V Princess of Norway |
Label format options
change- To show "S/V", use {{S/V}}: S/V Argo (1841)
- To link to S/Y Manitou, use {{Ship|S/Y|Manitou}}
By default, the wikilink is build like this:
{{S/V|Argo|1841}}
, the targetpage is
[[SV Argo (1841)]]
.- Then the template by default adds the formatted label:
[[targetpage|label]]
[[SV Argo (1841)|S/V ''Argo'' (1841)]]
, showing as:- S/V Argo (1841).
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:
{{SV|Argo|1841|2}}
→
[[SV Argo (1841)|''Argo'']]
→- Argo
The options are:
Value | Will show | Example | Wikilink [[targetpage|label]] | Shows |
---|---|---|---|---|
(default) | PREFIX name (ID) | {{S/V|Argo|1841}} | [[SV Argo (1841)|S/V ''Argo'' (1841)]] | S/V Argo (1841) |
1 | ID | {{S/V|Argo|1841|1}} | [[SV Argo (1841)|1841]] | 1841 |
2 | name | {{S/V|Argo|1841|2}} | [[SV Argo (1841)|''Argo'']] | Argo |
3 | name (ID) | {{S/V|Argo|1841|3}} | [[SV Argo (1841)|''Argo'' (1841)]] | Argo (1841) |
4 (dflt) | PREFIX name (ID) | {{S/V|Argo|1841|4}} | [[SV Argo (1841)|S/V ''Argo'' (1841)]] | S/V Argo (1841) |
5 | PREFIX ID | {{S/V|Argo|1841|5}} | [[SV Argo (1841)|S/V ''1841'']] | S/V 1841 |
6 | PREFIX name | {{S/V|Argo|1841|6}} | [[SV Argo (1841)|S/V ''Argo'']] | S/V Argo |
- 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:S in articles based on its TemplateData.
TemplateData for S This template provides a wikilink to a ship's page, with label options
|