Difference between revisions of "Template:ICGV/doc"

From blackwiki
Jump to navigation Jump to search
imported>隐世高人
Line 21: Line 21:
 
  | {{ICGV|Óðinn}}
 
  | {{ICGV|Óðinn}}
 
  |}
 
  |}
 
 
=== Optional display control parameter ===
 
There is an optional third parameter that controls which pieces of text are displayed in the article.  Its value is treated as a binary number and will display the corresponding "bits".  So setting the 1's bit will display the ship name.  If binary math isn't your thing, refer to below examples:
 
{|class=wikitable width=100%
 
! Value
 
! Parameter(s)<br>displayed
 
! Example
 
! Equivalent wikicode
 
! Final result
 
|-
 
! None
 
| style="text-align:center;" | all
 
| <tt><nowiki>{{ICGV|Óðinn}}</nowiki></tt>
 
| <tt><nowiki>[[ICGV Óðinn|ICGV ''Óðinn'']]</nowiki></tt>
 
| {{ICGV|Óðinn}}
 
|-
 
! 1
 
| style="text-align:center;" | 2nd
 
| <tt><nowiki>{{ICGV|Óðinn|1}}</nowiki></tt>
 
| <tt><nowiki>[[ICGV Óðinn|Óðinn]]</nowiki></tt>
 
| {{ICGV|Óðinn|1}}
 
|}
 
  
 
== See also ==
 
== See also ==

Revision as of 07:50, 23 October 2016

Usage

This is a typing short cut for linking to Icelandic Coast Guard ship articles named in the format "ICGV Óðinn". Since ship names are italicized in article text, linking to them in the usual manner means typing everything twice, such as [[ICGV Óðinn|ICGV ''Óðinn'']]. This template halves that to {{ICGV|Óðinn}}.

Formal usage

  • {{ICGV|Ship Name}}

Example

Template usage Equivalent wikicode Final result
{{ICGV|Óðinn}} [[ICGV Óðinn|ICGV ''Óðinn'']] ICGV Óðinn

See also

Template:WPSHIPS shortcut templates