The "wildcard phrase", is literally anything that is predefined. Doesn't matter whether that phrase uses dynamic sections or anything else.
"Altitude" is the predefined part of the recognized input, thus that is returned by "{CMD_WILDCARDKEY}". "4000" occurs after the predefined phrase, and as such it is returned by "{CMD_AFTER}".