User blog comment:EnderGamer555/Hello/@comment-24014422-20171013185124

You get badges depending on the condition you fulfill. Like categorizing some pages, or leaving a message into someone's message wall, etc.

However, your contributions must be valid. In other words, your contributions must serve a purpose, not because of a tendency to collect badges.