This template generates a pip rank image. Example:
{{Pips|Red|Captain|Enterprise}}
produces
Note the last is optional:
{{Pips|Red|Captain}}