⭐Finding a Badge
Last updated
Last updated
Arguments: [category]
, [badgeName]
A list of categories can be found by going here.
Badges can be searched for by running mdb search
, and following the prompts.
Let's say you want to find a badge for Discord. Since this is in the Social category, the following command needs to be ran:
This will output the following in the terminal:
The badge will show up like this in Markdown ->
You can also generate more than one badge at the same time, as long as they are all within the same category.
For example, to generate 3 badges for Discord, GitHub and YouTube from the Social category, run:
This will output the following in the terminal:
All options support more than one badge.
--style / -s
Function: Toggles the style of the badge.
There are 5 styles available to use with badges. These include the following:
flat
flat-square
plastic
social
for-the-badge
To change the style of the badge, which is by default flat
when no style is specified in the Shields.io URL, add this option after the command.
This will output the following in the terminal:
--html
Function: Toggles the HTML version of a badge.
Getting the HTML version of a badge is also supported.
Adding this option will output the HTML code as an <img>
tag, and also surrounded by <a>
tags if you use the --link
option together with this option.
To get the HTML version of a badge, use the option after your command:
This will output the following in the terminal:
You can now use this code in your HTML to display it on a webpage.
--link
Function: Toggles whether a badge should link to another site.
Adding this option will ask you to enter a prompt with the link you would like the badge to lead to.
An example of this option using Discord:
From here, enter the link you want to lead a user to when they click on the badge:
As explained a bit above, this can also be used in combination with --html
to get HTML badges that link to another webpage when clicked.
The badges will show up like this in Markdown ->
The badge will show up like this in Markdown ->