Template:Wikidata link/doc

A template to create a link to either Wikisource, Wikipedia, Commons, or Reasonator.

Using the specified Wikidata QID, the template checks for the existence of other sitelinks (in this order: en.Wikisource, en.Wikipedia, and Wikimedia Commons) and if one is found links to it. If none is found, it links to Reasonator's human-friendly representation of the item in Wikidata.

Usage
Please refer to Annotations before using this template in the Page: namespace or in the Mainspace.

Visibility of links
The link color is currently enabled by default. You can disable it with the Visibility gadget.

Templatedata
{	"params": { "1": {			"label": "Wikidata ID", "type": "string", "required": true, "description": "The Q-number of the item." },		"2": {			"label": "Link text", "type": "string", "description": "The text that will be displayed as the link.", "suggested": true }	},	"description": "Link to Wikisource, Wikipedia, Commons, or Reasonator, depending on the sitelinks of the given Wikidata item.", "format": "inline" }