Properties of anisotropic spin-density-wave and triplet superconducting states in quasi-one-dimensional conductors