How do you get a wonder card for the mystery gift in Pokemon diamond?

It comes with the Mystery gift...