Difference between revisions of "Template:BNS/doc"

From blackwiki
Jump to navigation Jump to search
imported>আফতাবুজ্জামান
(+)
 
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
 
  
 
== Usage ==
 
== Usage ==
Line 8: Line 8:
 
=== Formal usage ===
 
=== Formal usage ===
  
* <tt><nowiki>{{BNS|Ship Name}}</nowiki></tt>
+
* <kbd><nowiki>{{BNS|Ship Name}}</nowiki></kbd>
* <tt><nowiki>{{BNS|Ship Name|ID}}</nowiki></tt>, where ID can be the [[hull number]], launch year, or [[pennant number]], as specified in the article title.
+
* <kbd><nowiki>{{BNS|Ship Name|ID}}</nowiki></kbd>, where ID can be the [[hull number]], launch year, or [[pennant number]], as specified in the article title.
 
 
  
 
=== Examples ===
 
=== Examples ===
Line 19: Line 18:
 
  ! Final result
 
  ! Final result
 
  |-
 
  |-
  | <tt><nowiki>{{BNS|Bangabandhu|M 83}}</nowiki></tt>
+
  | <kbd><nowiki>{{BNS|Bangabandhu|M 83}}</nowiki></kbd>
  | <tt><nowiki>[[BNS Bangabandhu (M 83)|BNS ''Bangabandhu'' (M 83)]]</nowiki></tt>
+
  | <kbd><nowiki>[[BNS Bangabandhu (M 83)|BNS ''Bangabandhu'' (M 83)]]</nowiki></kbd>
 
  | {{BNS|Bangabandhu|M 83}}
 
  | {{BNS|Bangabandhu|M 83}}
 
<!--  
 
<!--  
 
  |-
 
  |-
  | <tt><nowiki>{{BNS|Bangabandhu|1983}}</nowiki></tt>
+
  | <kbd><nowiki>{{BNS|Bangabandhu|1983}}</nowiki></kbd>
  | <tt><nowiki>[[BNS Bangabandhu (1983)|BNS ''Bangabandhu'' (1983)]]</nowiki></tt>
+
  | <kbd><nowiki>[[BNS Bangabandhu (1983)|BNS ''Bangabandhu'' (1983)]]</nowiki></kbd>
 
  | {{BNS|Bangabandhu|1983}}  
 
  | {{BNS|Bangabandhu|1983}}  
 
-->
 
-->
 
  |-
 
  |-
  | <tt><nowiki>{{BNS|Bangabandhu}}</nowiki></tt>
+
  | <kbd><nowiki>{{BNS|Bangabandhu}}</nowiki></kbd>
  | <tt><nowiki>[[BNS Bangabandhu|BNS ''Bangabandhu'']]</nowiki></tt>
+
  | <kbd><nowiki>[[BNS Bangabandhu|BNS ''Bangabandhu'']]</nowiki></kbd>
 
  | {{BNS|Bangabandhu}}
 
  | {{BNS|Bangabandhu}}
 
  |}
 
  |}
Line 36: Line 35:
 
Last example could be used to link to ship index (disambiguation) page
 
Last example could be used to link to ship index (disambiguation) page
  
=== See also ===
+
== TemplateData ==
 +
{{Template: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|BNS]]
[[Category:Ship templates|BNS]]
+
}}</includeonly>
</includeonly>
 

Latest revision as of 05:30, 5 August 2018


Usage

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

Formal usage

  • {{BNS|Ship Name}}
  • {{BNS|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
{{BNS|Bangabandhu|M 83}} [[BNS Bangabandhu (M 83)|BNS ''Bangabandhu'' (M 83)]] BNS Bangabandhu (M 83)
{{BNS|Bangabandhu}} [[BNS Bangabandhu|BNS ''Bangabandhu'']] BNS Bangabandhu

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

TemplateData

Template:Ship/doc/fixed prefix: TemplateData


See also

Template:WPSHIPS shortcut templates