Difference between revisions of "Template:INS/doc"

From blackwiki
Jump to navigation Jump to search
imported>Varlaam
(Not USS)
imported>WOSlinker
(tidy style for better HTML5 compatibility)
Line 14: Line 14:
 
=== Examples ===
 
=== Examples ===
 
{|class=wikitable width="100%"
 
{|class=wikitable width="100%"
  |- style="background-color:#FCFCFC" align="left"
+
  |- style="background-color:#FCFCFC;text-align:left;"
 
  ! Template usage
 
  ! Template usage
 
  ! Equivalent wikicode
 
  ! Equivalent wikicode

Revision as of 21:13, 17 July 2015

Usage

This is a typing short cut for linking to Indian Navy ship articles named in the format "INS Mahé (M-83)". Since ship names are italicized in article text, linking to them in the usual manner means typing everything twice, such as [[INS Mahé (M-83)|INS ''Mahé'' (M-83)]]. This template halves that to {{INS|Mahé|M-83}}.

Formal usage

  • {{INS|Ship Name}}
  • {{INS|Ship Name|ID}}, where ID can be the hull number, launch year, or pennant number, as specified in the article title.


Examples

Template usage Equivalent wikicode Final result
{{INS|Mahé|M 83}} [[INS Mahé (M 83)|INS ''Mahé'' (M 83)]] INS Mahé (M 83)
{{INS|Mahé|1983}} [[INS Mahé (1983)|INS ''Mahé'' (1983)]] INS Mahé (1983)
{{INS|Mahé}} [[INS Mahé|INS ''Mahé'']] INS Mahé

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

See also

Template:WPSHIPS shortcut templates