badges / shields

Concise, consistent, and legible badges in SVG and raster format
https://shields.io
Creative Commons Zero v1.0 Universal
23.9k stars 5.51k forks source link

[BadgeReq] ORCID #10643

Closed MrT-tak closed 4 weeks ago

MrT-tak commented 4 weeks ago

πŸ“‹ Description

I've tried using static badge but the parser fails when using large text and the - doesn't work well even with double --.

πŸ”— Data

I don't think you need a public API but ORCID does have an API. https://info.orcid.org/what-is-orcid/services/public-api/ this requires an account to generate an API key, similar to GitHub apps or OAuth.

🎀 Motivation

I would love to use it in my README.MD and my website. The HTML they provide you isn't smooth and inline with other things in my readme! They give you the following to embed:

[https://orcid.org/0009-0005-7450-170X](![An ORCID logo](https://orcid.org/sites/default/files/images/orcid_16x16.png) https://orcid.org/0009-0005-7450-170X)

<a id="cy-effective-orcid-url" class="underline" href="https://orcid.org/0009-0005-7450-170X" target="orcid.widget" rel="me noopener noreferrer" style="vertical-align: top"> <img src="https://orcid.org/sites/default/files/images/orcid_16x16.png" style="width: 1em; margin-inline-start: 0.5em" alt="ORCID iD icon"/> https://orcid.org/0009-0005-7450-170X </a>

note:

ORCID id is really long! It is similar to UUIDs. My ORCID: 0009-0005-7450-170X

MrT-tak commented 4 weeks ago

Also can someone add help request badge also if needed? Thanks!

chris48s commented 4 weeks ago

Hello. Can you explain what you mean by

the parser fails when using large text

I see no reason this can't be done with the static badge

example:

As noted in the issue template

This issue template is for suggesting new badges which fetch and display data from an upstream service. If your suggestion is for a static badge (which shows the same information every time it is requested), it is already possible to make these. We don't add specific routes for badges which only show static information.

MrT-tak commented 4 weeks ago

Hello. Can you explain what you mean by

the parser fails when using large text

I see no reason this can't be done with the static badge

example:

As noted in the issue template

This issue template is for suggesting new badges which fetch and display data from an upstream service. If your suggestion is for a static badge (which shows the same information every time it is requested), it is already possible to make these. We don't add specific routes for badges which only show static information.

Oh wow. Thanks @chris48s ! I was on the static badge generator page and it kept going to 404 https://img.shields.io/badge/0009-0005-7450-170X?logo=orcid&label=ORCID

MrT-tak commented 4 weeks ago

I had the syntax wrong lol @chris48s Thank you very much!