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