What does "triptych" mean?

Triptych: Anything in three parts or leaves. Specifically: -- (a) A writing tablet in three parts, two of which fold over on the middle part. (b) A picture or altarpiece in three compartments.

Sources