This guide on path substitution may be a bit easier to follow if you still had questions after reading the wiki article linked above.