Difference between revisions of "Template:ICS/doc"

From blackwiki
Jump to navigation Jump to search
imported>Barek
imported>Barek
(→‎Examples: clarify)
Line 20: Line 20:
 
| <code><nowiki>{{ICS|Pennant Zero}}</nowiki></code> || {{ICS|Pennant Zero}} || If the image name includes "Pennant", then it's required by the template
 
| <code><nowiki>{{ICS|Pennant Zero}}</nowiki></code> || {{ICS|Pennant Zero}} || If the image name includes "Pennant", then it's required by the template
 
|-
 
|-
| <code><nowiki>{{ICS|Answer}}</nowiki></code> || {{ICS|Answer}} || This is also the default image, if no "Name" is specified
+
| <code><nowiki>{{ICS|Answer}}</nowiki></code> || {{ICS|Answer}} || This is also the default image, if no ''name'' parameter is specified
 
|-
 
|-
 
| <code><nowiki>{{ICS|Port|size=22px}}</nowiki></code> || {{ICS|Port|size=22px}} || sets the image width to 22px
 
| <code><nowiki>{{ICS|Port|size=22px}}</nowiki></code> || {{ICS|Port|size=22px}} || sets the image width to 22px

Revision as of 01:12, 19 December 2008

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