Template:EditAtWikidata/doc

Template to display an icon with a tooltip such as "Edit this at Wikidata"
 * Icon will be linked to the Wikidata entry for the article where this is placed.
 * The link can be modified to point to a specific property in the Wikidata entry by supplying the optional named parameter pid.
 * This message is only displayed if a local_parameter is not supplied; i.e. when called from within a template, it can be coded not to display the icon when a local parameter is in use, which means the value from Wikidata is not used.
 * The qid of a Wikidata entry can optionally be supplied for testing outside the article (this is an expensive call).

Usage


Outside the article:

Inside another template:

To make the link point to the given propertyID at the Wikidata entry:

Example
Usage:
 * Template:EditAtWikidata

Output:
 * Template:EditAtWikidata

Wikitext:
 * Template:EditAtWikidata

TemplateData
{	"params": { "1": {			"label": "Local parameter", "description": "Local parameter, which if supplied will override this template", "type": "string" },		"qid": { "label": "QID", "description": "Q item ID of the item to be edited at Wikidata" },		"pid": { "label": "PID", "description": "Property ID of the property to be edited at Wikidata" },		"nbsp": { "label": "Non-breaking space", "description": "Replaces the leading space with a non-breaking space", "type": "boolean", "autovalue": "yes" }	},	"paramOrder": [ "1",		"qid", "pid", "nbsp" ] }