Template:USS: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(created a new ship name/link template to make life easier)
(added link to Template:No USS)
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#if:{{{2|}}}
[[USS {{{1}}}|USS ''{{{1}}}'']]
|[[USS {{{1}}}-{{{2}}}|USS ''{{{1}}}''-{{{2}}}]]
</includeonly>
|[[USS {{{1}}}|USS ''{{{1}}}'']]
<noinclude>
}}</includeonly><noinclude>
===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>
:<nowiki>{{USS|Ronin}}</nowiki>, which will give you: {{USS|Ronin}}
{{USS|Ronin}}
:<nowiki>{{USS|Drake}}</nowiki>, which will give you: {{USS|Drake}}


If you want to link to a ship with a letter suffix, use the [[Template:USSX]] template.
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}}
 
===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}}
 
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 21:14, 6 October 2016

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