Template:No USS: Difference between revisions

From 118Wiki
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.

{{No USS|Ronin}}, which will give you: Ronin
{{No USS|Drake}}, which will give you: Drake

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Ship name1

The name of the ship without USS or letter suffix

Example
Ronin
Linerequired
Letter suffix2

Suffix that identifies ships with the same name

Example
A
Lineoptional