Template:USS: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(killing two birds with one stone)
(Template Data)
 
(5 intermediate revisions by one other user not shown)
Line 2: Line 2:
  |[[USS {{{1}}}-{{{2}}}|USS ''{{{1}}}''-{{{2}}}]]
  |[[USS {{{1}}}-{{{2}}}|USS ''{{{1}}}''-{{{2}}}]]
  |[[USS {{{1}}}|USS ''{{{1}}}'']]
  |[[USS {{{1}}}|USS ''{{{1}}}'']]
}}}}</includeonly><noinclude>
}}</includeonly><noinclude>
===The USS Template===
===The USS Template===
This simplifies properly formatting a ship's name in italics as a wikilink. Use as follows:
This simplifies properly formatting a ship's name in italics as a wikilink. Use as follows:
:<nowiki>{{USS|Ronin}}</nowiki>, which will give you: {{USS|Ronin}}
:<nowiki>{{USS|Drake}}</nowiki>, which will give you: {{USS|Drake}}


<nowiki>{{USS|Ronin}}</nowiki>, which will give you: {{USS|Ronin}}
If you want to link to a ship with a letter suffix, simply add the specific letter as an additional parameter.
:<nowiki>{{USS|Independence|A}}</nowiki> gives you this: {{USS|Independence|A}}
:<nowiki>{{USS|Constitution|B}}</nowiki> gives you this: {{USS|Constitution|B}}


If you want to link to a ship with a letter suffix, simply add the specific letter as an additional parameter.
===Don't want the USS displayed before the name?===
Use [[Template:No USS]].
:<nowiki>{{No USS|Drake}}</nowiki>, which will give you: {{No USS|Drake}}
:<nowiki>{{No USS|Independence|A}}</nowiki> gives you this: {{No USS|Independence|A}}


<nowiki>{{USS|Independence|A}}</nowiki> gives you this: {{USS|Independence|A}}
{{Navbox|TITLE=Template Data|
[[Category:Templates]]
<templatedata>
</noinclude>
{
"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. See also Template:No USS if you do not want USS displayed before the name.",
"paramOrder": [
"1",
"2"
],
"format": "inline"
}
</templatedata>}}
[[Category:Templates]]</noinclude>

Latest revision as of 20:54, 6 January 2024

The USS Template

This simplifies properly formatting a ship's name in italics as a wikilink. Use as follows:

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

If you want to link to a ship with a letter suffix, simply add the specific letter as an additional parameter.

{{USS|Independence|A}} gives you this: USS Independence-A
{{USS|Constitution|B}} gives you this: USS Constitution-B

Don't want the USS displayed before the name?

Use Template:No USS.

{{No USS|Drake}}, which will give you: Drake
{{No USS|Independence|A}} gives you this: Independence-A
Template Data

Properly formats ship name in italics. See also Template:No USS if you do not 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