Difference between revisions of "Template:ICS/doc"

From blackwiki
Jump to navigation Jump to search
imported>Barek
(→‎Examples: clarify)
imported>WOSlinker
(change cat)
Line 32: Line 32:
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
 
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
[[Category:WikiProject Ships templates|ICS]]
+
[[Category:Ship templates]]
  
 
</includeonly>
 
</includeonly>

Revision as of 11:08, 26 May 2012

Description

This can be used as a simplified method to add ICS flag call signs to ship infoboxes.

Usage

{{ICS|name|size=}}

name
The first parameter is mandatory, and identifies the name of the flag. A full list of available parameters can be found on Midiawiki Commons in Commons:Category:International Code of Signals. For example, Image:ICS Bravo.svg is used when the name parameter is specified as Bravo.
size
This parameter is optional, and is used to specify the maximum width and/or height of the flag image. This parameter is specified using standard image syntax.

Examples

Wikicode Results Notes
{{ICS|Bravo}} ICS Bravo.svg
{{ICS|Foxtrot}} ICS Foxtrot.svg
{{ICS|Pennant Zero}} ICS Pennant Zero.svg If the image name includes "Pennant", then it's required by the template
{{ICS|Answer}} ICS Answer.svg This is also the default image, if no name parameter is specified
{{ICS|Port|size=22px}} ICS Port.svg sets the image width to 22px
{{ICS|Group|size=999x30px}} ICS Group.svg sets the image height to 30px

See also

International maritime signal flags