Captain (junior rank)
Captain was a commissioned officer rank, the equivalent of which was used by the service organizations of many civilizations. As an infantry rank, captains ranked subordinate to a major and above a first lieutenant. 

During the 20th century, the infantry rank of captain was common in Earth militaries and was used by the United States Army, United States Marine Corps, and United States Air Force branches of the United States military. 

It was comparable to the naval rank of lieutenant and was represented by a double rectangular silver bar uniform insignia.

History 
In 1969, the USAF Captain John Christopher's F-104 Starfighter was intercepted by the . After Christopher was beamed aboard, he was given a  that bore a comparable lieutenant's braid. ()

In 2364, the Q entity took the form of a late 20th century US Marine Corps captain during his initial confrontation with Captain Picard. In this disguise, Q was quoted as stating, "All it takes is a few good men." () 

In 2373, Q later took the form of an 1860s Union Army infantry captain during the Q Civil War, while   took the form of an 1860s Confederate Army infantry captain. ()

In 2374, a holodeck simulation of a Nazi campaign in France, a group of Hirogen pitted the crew of  against holographic 1940s Germans, a US Army captain named Miller was the role assigned to Chakotay in the program. ()

It was also used by Nazi Germany during World War II. In the German Army, the rank was translated as hauptmann ("headman"), but in the SS, company captains were referred to as hauptsturmführer ("head storm leader"). The collar insignia for this was a black square bordered with white, with three silver pips in a diagonal line, with two stripes underneath.

In the same Hirogen Nazi holodeck campaign, a hauptsturmführer was a key character in the simulation. He was referred to by Brigitte as a hauptmann. ()

The rank remained in use on Earth well into the 22nd century, where T. Ginwald and T. Pine served as captains in the United Earth Military. ()

External link 
 

Military ranks