Remarkable tuning of the coordination and photophysical properties of lanthanide ions in a series of tetrazole-based complexes.