Pokemon Diamond Pearl & Platinum

Number Ribbon How to get
Cool Ribbon Win Cool Super Contest Normal Rank
Cool Super Ribbon Win Cool Super Contest Super Rank
Cool Hyper Ribbon Win Cool super Contest Hyper Rank
Cool Master Ribbon Win Cool Super Contest Master Rank
Beauty Ribbon Win Beauty Super Contest Normal Rank
Beauty Super Ribbon Win Beauty Super Contest Super Rank
Beauty Hyper Ribbon Win Beauty Super Contest Hyper Rank
Beauty Master Ribbon Win Beauty Super Contest Master Rank
Cute Ribbon Win Cute Super Contest Normal Rank
Cute Super Ribbon Win Cute Super Contest Super Rank
Cute Hyper Ribbon Win Cute Super Contest Hyper Rank
Cute Master Ribbon Win Cute Super Contest Master Rank
Smart Ribbon Win Smart Super Contest Normal Rank
Smart Super Ribbon Win Smart Super Contest Super Rank
Smart Hyper Ribbon Win Smart Super Contest Hyper Rank
Smart Master Ribbon Win Smart Super Contest Master Rank
Tough Ribbon Win Tough Super Contest Normal Rank
Tough Super Ribbon Win Tough Super Contest Super Rank
Tough Hyper Ribbon Win Tough Super Contest Hyper Rank
Tough Master Ribbon Win Tough Super Contest Master Rank
Sinnoh Champ Ribbon Defeat the Sinnoh Elite 4
Ability Ribbon Defeat Tower Tycoon Palmer the first time in Battle Tower Singles (21st battle)**
**Note: Can also be done in HGSS
Great Ability Ribbon Defeat Tower Tycoon Palmer the second time in Battle Tower Singles (49th battle)**
**Note: Can also be done in HGSS
Double Ability Ribbon Win 50 consecutive battles in Battle Tower Doubles**
**Note: Can also be done in HGSS
Multi Ability Ribbon Win 50 consecutive battles in Battle Tower Multi.**
**Note: Can also be done in HGSS
Pair Ability Ribbon Win 50 consecutive battles in Battle Tower Link Multi.**
**Note: Can also be done in HGSS
World Ability Ribbon Reach Rank 5 in the Wi-Fi Battle Tower challenge**
**Note: Can also be done in HGSS

The ribbons below can be acquired in multiple gens

Number Ribbon How to get
Effort Ribbon Show mon with 510 EVs at Sunnyshore Market**
**Note: Can also be done in RSE, HGSS, XY, ORAS, USUM, SwSh & BDSP
Alert Ribbon Show mon on Monday in Sunyshore City**
**Note: Can also be done in HGSS, XY, ORAS & BDSP
Shock Ribbon Show mon on Tuesday in Sunyshore City**
**Note: Can also be done in HGSS, XY, ORAS & BDSP
Downcast Ribbon Show mon on Wednesday in Sunyshore City**
**Note: Can also be done in HGSS, XY, ORAS & BDSP
Careless Ribbon Show mon on Thursday in Sunyshore City**
**Note: Can also be done in HGSS, XY, ORAS & BDSP
Relax Ribbon Show mon on Friday in Sunyshore City**
**Note: Can also be done in HGSS, XY, ORAS & BDSP
Snooze Ribbon Show mon on Saturday in Sunyshore City**
**Note: Can also be done in HGSS, XY, ORAS & BDSP
Smile Ribbon Show mon on Sunday in Sunyshore City**
**Note: Can also be done in HGSS, XY, ORAS & BDSP
Gorgeous Ribbon Buy for 10,000 pokemonies at the Ribbon Syndicate; located in Resort Area**
**Note: Can also be done in ORAS & BDSP
Royal Ribbon Buy for 100,000 pokemonies at the Ribbon Syndicate; located in the Resort Area**
**Note: Can also be done in ORAS & BDSP
Gorgeous Royal Ribbon Buy for 999,999 pokemonies at the Ribbon Syndicate; located in the Resort Area**
**Note: Can also be done in ORAS & BDSP
Footprint Ribbon Show mon with high happiness in Route 213**
**Note: Can also be done in XY, ORAS, USUM & BDSP

Big thanks to u/CaptainTimey on Reddit for the help with the ribbons and their locations!