Template:Wikidata link/doc

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

Using the specified Wikidata QID, the template checks for the existence of other sitelinks (in this order: en.Wikiversity, en.Wikipedia, en.Wikisource, and Wikimedia Commons) and if one is found links to it. If none is found, it links directly to Wikidata.

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" }