For the formulation of Bell inequalities, it is important to include not just N-site correlation functions, but also (N-n)-site correlation functions. In this article, we focus on a three-qubit Bell inequality, which has been shown to be a good candidate for generalizing Gisin's theorem to three qubits. The three-qubit Bell inequality can be used to detect the W-type entanglement in a proposed experiment.