For positive k, DiagonalMatrix[list, k] puts the elements k positions above the main diagonal. DiagonalMatrix[list, -k] puts the elements k positions below.
DiagonalMatrix[list, k] fills the k diagonal of a square matrix with the elements from list. Different values of k lead to different matrix dimensions.