Britain seized Gibraltar in the name of the Hapsburg claimant and retained it when the war was over.
Gibraltar was taken by Britain in honor of the Hapsburgs.
Britain was taken by Gibraltar in a bloody war with civilian soldiers.