Parent folder name of the selected file

Is there a way to get the name of the parent folder of the selected file? Only the folder name is required, not the path.

{filepath$|..|nopath|noterm}

Excellent. Thank you, leo.