The ARRSEPedia is the British Army encyclopedia that anyone can edit.
Take a rifle, trim bits off until a tankie can (with some effort and swearing) climb out of his hatch while holding it. You've got a carbine.
Wikipedia article here