Jump to content

Template:USS: Difference between revisions

From IdeaWazaWiki
wikademia>J Clear
try 32
wikademia>J Clear
try to eliminate inserted <br> at end of template
Line 1: Line 1:
[[ USS {{{1}}}{{#if:{{{2|}}}|&#32;({{{2}}})}}|USS&nbsp;''{{{1}}}''{{#if:{{{2|}}}|&nbsp;({{{2}}})}}]]
<includeonly>[[ USS {{{1}}}{{#if:{{{2|}}}|&#32;({{{2}}})}}|USS&nbsp;''{{{1}}}''{{#if:{{{2|}}}|&nbsp;({{{2}}})}}]]</includeonly><noinclude>
<noinclude>
 
This is a short cut for linking to [[US Navy]] ship articles.
This is a short cut for linking to [[US Navy]] ship articles.


<nowiki>
 
Usage:<br>
Usage:<br>
   {{USS|Ship Name|type-number}}<br>
   <nowiki>{{USS|Ship Name|type-number}}</nowiki>
<br>
 
Example:<br>
Example:
  {{USS|Enterprise|CVN-65}} yields [[USS Enterprise (CVN-65)|USS ''Enterprise'' (CVN-65)]]<br>
  <nowiki>{{USS|Enterprise|CVN-65}} yields [[USS Enterprise (CVN-65)|USS ''Enterprise'' (CVN-65)]]</nowiki>
<br>
 
or<br>
or
  {{USS|Constellation|1797}} yields [[USS Constellation (1797)|USS ''Constellation'' (1797]]<br>
  <nowiki>{{USS|Constellation|1797}} yields [[USS Constellation (1797)|USS ''Constellation'' (1797]]</nowiki>
or<br>
 
  {{USS|Contitution}} yields [[USS Constitution|USS ''Constitution]]<br>
or
  <nowiki>{{USS|Contitution}} yields [[USS Constitution|USS ''Constitution]]</nowiki>
 
Last example could be used to link to ship index (dab) page<br>
Last example could be used to link to ship index (dab) page<br>
</nowiki>
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 00:16, 24 September 2006


This is a short cut for linking to US Navy ship articles.


Usage:

  {{USS|Ship Name|type-number}}

Example:

  {{USS|Enterprise|CVN-65}} yields [[USS Enterprise (CVN-65)|USS ''Enterprise'' (CVN-65)]]

or

  {{USS|Constellation|1797}} yields [[USS Constellation (1797)|USS ''Constellation'' (1797]]

or

  {{USS|Contitution}} yields [[USS Constitution|USS ''Constitution]]

Last example could be used to link to ship index (dab) page