Difference between revisions of "Template:ICGV/doc"
Jump to navigation
Jump to search
imported>隐世高人 |
imported>隐世高人 |
||
| Line 40: | Line 40: | ||
! 1 | ! 1 | ||
| style="text-align:center;" | 2nd | | style="text-align:center;" | 2nd | ||
| − | | <tt><nowiki>{{ICGV|Óðinn}}</nowiki></tt> | + | | <tt><nowiki>{{ICGV|Óðinn|1}}</nowiki></tt> |
| <tt><nowiki>[[ICGV Óðinn|Óðinn]]</nowiki></tt> | | <tt><nowiki>[[ICGV Óðinn|Óðinn]]</nowiki></tt> | ||
| {{ICGV|Óðinn|1}} | | {{ICGV|Óðinn|1}} | ||
Revision as of 19:06, 22 October 2016
| This is a documentation subpage for Template:ICGV. It contains usage information, categories and other content that is not part of the original template page. |
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 |
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 4's bit will display BRP, setting the 2's bit will display the ship name, and setting the 1's bit will display the ID. If binary math isn't your thing, refer to these examples:
| Value | Parameter(s) displayed |
Example | Equivalent wikicode | Final result |
|---|---|---|---|---|
| None | all | {{ICGV|Óðinn}} | [[ICGV Óðinn|ICGV ''Óðinn'']] | ICGV Óðinn |
| 1 | 2nd | {{ICGV|Óðinn|1}} | [[ICGV Óðinn|Óðinn]] | ICGV Óðinn (1) |
See also
Template:WPSHIPS shortcut templates