Difference between revisions of "Template:ICS/doc"

From blackwiki
Jump to navigation Jump to search
imported>Barek
(→‎Examples: clarify)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
=== Usage ===
 
=== Usage ===
 
<code><nowiki>{{ICS|name|size=}}</nowiki></code>
 
<code><nowiki>{{ICS|name|size=}}</nowiki></code>
;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 <code>Bravo</code>.  
+
;name: The first parameter is mandatory, and identifies the name of the flag. A full list of available parameters can be found on Wikimedia Commons at [[Commons:Category:International Code of Signals]]. For example, [[:Image:ICS Bravo.svg]] is used when the ''name'' parameter is specified as <code>Bravo</code>.  
;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 [[Wikipedia:Extended image syntax|image syntax]].
+
;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 [[Wikipedia:Extended image syntax|image syntax]].
  
 
=== Examples ===
 
=== Examples ===
Line 30: Line 30:
 
[[International maritime signal flags]]
 
[[International maritime signal flags]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
 
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
[[Category:WikiProject Ships templates|ICS]]
+
[[Category:Ship templates]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 17:15, 25 April 2020

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 Wikimedia Commons at 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