Template:No USS: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#if:{{{2|}}} |[[USS {{{1}}}-{{{2}}}|''{{{1}}}''-{{{2}}}]] |[[USS {{{1}}}|''{{{1}}}'']] }}</includeonly><noinclude> ===The No USS Template=== Just like Templ...") |
(Template Data) |
||
Line 11: | Line 11: | ||
:<nowiki>{{No USS|Independence|A}}</nowiki> gives you this: {{No USS|Independence|A}} | :<nowiki>{{No USS|Independence|A}}</nowiki> gives you this: {{No USS|Independence|A}} | ||
:<nowiki>{{No USS|Constitution|B}}</nowiki> gives you this: {{No USS|Constitution|B}} | :<nowiki>{{No USS|Constitution|B}}</nowiki> gives you this: {{No USS|Constitution|B}} | ||
[[Category:Templates]] | |||
</noinclude> | {{Navbox|TITLE=Template Data| | ||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Ship name", | |||
"description": "The name of the ship without USS or letter suffix", | |||
"example": "Ronin", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Letter suffix", | |||
"description": "Suffix that identifies ships with the same name", | |||
"example": "A", | |||
"type": "line" | |||
} | |||
}, | |||
"description": "Properly formats ship name in italics in link without USS prefix. See also Template:USS if you want USS displayed before the name.", | |||
"paramOrder": [ | |||
"1", | |||
"2" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata>}} | |||
[[Category:Templates]]</noinclude> |
Latest revision as of 12:12, 8 January 2024
The No USS Template
Just like Template:USS except it creates a link to the USS Whatever without displaying the USS.
If you want to link to a ship with a letter suffix, simply add the specific letter as an additional parameter.
- {{No USS|Independence|A}} gives you this: Independence-A
- {{No USS|Constitution|B}} gives you this: Constitution-B
Template Data
Properly formats ship name in italics in link without USS prefix. See also Template:USS if you want USS displayed before the name.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Ship name | 1 | The name of the ship without USS or letter suffix
| Line | required |
Letter suffix | 2 | Suffix that identifies ships with the same name
| Line | optional |