Template:CrateLink

Description
This template provides a standard way to link to crates. It will follow user preferences, site standards, and any data mining we might want to do some day.

The first parameter is the name of the crate; make sure you use its exact package name (no accents, utf8 characters, ect), so that we can generate a link from it. The second, optional, parameter allows you to link to a custom home page that will be put on the side of the crate link. By default, the crate link itself is prioritized since it can almost never point to a dead link, however users might change this preference for themselves and put the homepage to replace entirely the crate link.

Usage
With the default URL:.

With a custom home URL:

Non-ascii crate names
If you have a crate with an identifier that is not its official name, you an use this template like so:

(märkəd)

{	"description": "Provides a standard way to link to crates.", "format": "inline", "params": { "1": {			"label": "Crate name", "description": "The name of the crate on crates.io", "type": "string" },		"2": {			"label": "Homepage (optional)", "description": "The full URL of the crate's homepage", "type": "string" }	},	"paramOrder": [ "1",		"2"	] }