If you are a forward who has just had a crack at the goal and have seen to your dismay that your shot hit the upright and bounced just outside the goal,don’t worry.
You just have to walk away with your arms in the air pretending to celebrate a goal and the ref will obligingly do the rest.
Marcell Jansen’s opening goal for Hamburg was allowed against Mainz was allowed to stand in precisely such a manner.