Template:Swh/doc
< Template:Swh
Revision as of 09:14, 27 July 2020 by Wikipedia>Boud (→Examples: ce)
This is a documentation subpage for Template:Swh. It contains usage information, categories and other content that is not part of the original template page. |
This template is intended for external links. |
Purpose
Provides a uniform method of formatting Software Heritage links, and makes it simpler to update if the format of those links changes in future.
Usage
This template can be used in the following way:
- {{swh|swh:1:dir:0123456789abcdef0123456789abcdef012345678}}
The parameters have the following meaning:
|1=
or|id=
or specifies the ID of the particular entry - a the 40-character sha1sum. Click on "download" at an swh page to find out the ID of an archive that is justifiably usable as an external link. The tip revision is not the ID of an swh archive.
Examples
Markup | Renders as |
---|---|
{{swh|a92cf41ec3c5ec813ef3ba3a1764b95da2ec1648}} |
|
{{swh|6f8a98ab84615f7a21c2b1795b5139696d732ca9}} |
|
{{swh|fcc9d6b111e319e51af88502fe6b233dc78d5166}} |
|
The parameters have the following meaning:
|1=
or|id=
specifies the ID. As of July 2020, this is an sha1sum 40-character hexadecimal string. This template will need to be updated if the swh:1:dir prefix is updated - the 1 probably indicates version 1 of the ID system.
See also
- {{arxiv}}
- {{Catalog lookup link}}