Difference between revisions of "Template:INS/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vprajkumar
(Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> == Usage == This is a typing short cut for linking to [[Indian N...')
 
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
(22 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
  
== 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 <nowiki>[[INS Mahé (M-83)|INS ''Mahé'' (M-83)]]</nowiki>.  This template halves that to <nowiki>{{INS|Mahé|M-83}}.
This is a typing short cut for linking to [[Indian Navy]] ship articles named in the format "INS Mahe (M-83)".  Since ship names are italicized in article text, linking to them in the usual manner means typing everything twice, such as <nowiki>[[INS Mahe (M-83)|INS ''Mahe'' (M-83)]]</nowiki>.  This template halves that to <nowiki>{{INS|Mahe|M-83}}.
 
 
</nowiki>
 
</nowiki>
  
=== See also ===
+
== Formal usage ==
 +
 
 +
* <code><nowiki>{{INS|Ship Name}}</nowiki></code>
 +
* <code><nowiki>{{INS|Ship Name|ID}}</nowiki></code>, where ID can be the [[hull number]], launch year, or [[pennant number]], as specified in the article title.
 +
 
 +
=== Examples ===
 +
{|class=wikitable width="100%"
 +
|- style="background-color:#FCFCFC;text-align:left;"
 +
! Template usage
 +
! Equivalent wikicode
 +
! Final result
 +
|-
 +
| <code><nowiki>{{INS|Mahé|M 83}}</nowiki></code>
 +
| <code><nowiki>[[INS Mahé (M 83)|INS ''Mahé'' (M 83)]]</nowiki></code>
 +
| {{INS|Mahé|M 83}}
 +
|-
 +
| <code><nowiki>{{INS|Mahé|1983}}</nowiki></code>
 +
| <code><nowiki>[[INS Mahé (1983)|INS ''Mahé'' (1983)]]</nowiki></code>
 +
| {{INS|Mahé|1983}}
 +
|-
 +
| <code><nowiki>{{INS|Mahé}}</nowiki></code>
 +
| <code><nowiki>[[INS Mahé|INS ''Mahé'']]</nowiki></code>
 +
| {{INS|Mahé}}
 +
|}
 +
 
 +
Last example could be used to link to ship index (disambiguation) page
 +
{{Ship/doc/fixed prefix: label format options}}
 +
 
 +
== TemplateData ==
 +
{{Ship/doc/fixed prefix: TemplateData}}
 +
 
 +
== See also ==
 
{{WPSHIPS shortcut templates}}
 
{{WPSHIPS shortcut templates}}
  
<includeonly>
+
<includeonly>{{sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
[[Category:Ship prefix templates|INS]]
[[Category:WikiProject Ships templates|USS]]
+
 
</includeonly>
+
}}</includeonly>

Latest revision as of 02:15, 3 June 2020

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 Template:Ship/doc/fixed prefix: label format options

TemplateData

Template:Ship/doc/fixed prefix: TemplateData

See also

Template:WPSHIPS shortcut templates