hayagriva icon indicating copy to clipboard operation
hayagriva copied to clipboard

Archived URLs (kinda like Archive.org on Wikipedia)

Open onkoe opened this issue 4 months ago • 2 comments

Could you please consider supporting archived URLs, like Wikipedia?

See: https://en.wikipedia.org/wiki/Help:Archiving_a_source

In summary, you can do the following in Wikitext:

{{cite web |last= |first= |date= |title= |url= |website= |location= |publisher= |url-status= |archive-url= |archive-date=}}

Notice the url-status, archive-url, and archive-date fields? These are particularly important for preserving online links, and could really make Hayagriva more useful when citing web-hosted content.

I'm already using archive-url: $LINK within my bib.yml in Typst, but it's not actually shown anywhere when rendered without special handling. Supporting this in Hayagriva directly would be great! :D

onkoe avatar Oct 10 '25 15:10 onkoe

Indeed, archive-url is not a supported field - the list of supported fields can be found at https://github.com/typst/hayagriva/blob/main/docs/file-format.md.

CSL doesn't have a variable for an archive URL specifically (see https://docs.citationstyles.org/en/stable/specification.html#standard-variables). Therefore, adding the field wouldn't change whether it is displayed, since no styles would display it.

However, it does have archive and archive-location (which are supported by Hayagriva). Perhaps you can use that?

PgBiel avatar Oct 10 '25 18:10 PgBiel

Thanks! I made an "RFC" post on the CSL forum, so maybe it can happen within the next few years. 😅 https://discourse.citationstyles.org/t/rfc-archive-url-standard-variable/1931

onkoe avatar Oct 11 '25 15:10 onkoe