A rare cancer that forms in the bile ducts. A bile duct is a tube that carries bile (fluid made by the liver) between the liver and gallbladder and the small intestine. Intrahepatic cholangiocarcinoma is found inside the liver. Extrahepatic cholangiocarcinoma is found outside the liver. Also called bile duct cancer.