A triple function linear fiber laser with passive mode-locking and continuous-wave single-wavelength and multiwavelength lasing.