This template returns a index number for a given unit type, typically used for sorting. See Property:Is of type/index for one spot where this is used.
Usage:
{{Unit type index|type}}
Examples:
{{Unit type index|Generic}}
0
{{Unit type index|Green}}
3
{{Unit type index|Blue-red}}
8
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.