change Format to only show used Dimensions

Changed format so that %#v prints out dimensions that are used, in the
same way as map would.