Ring-size controllable metallamacrocycles as building blocks for the construction of microporous metal-organic frameworks.