Template:SPARQL/doc

Usage
{	"params": { "p": { "label": "p", "description": "Produce p: prefix if set", "type": "boolean" },		"q": { "label": "q", "description": "Produce q: prefix if set", "type": "boolean" },		"v": { "label": "v", "description": "Produce v: prefix if set", "type": "boolean" },		"query": { "required": true, "label": "query", "description": "SPARQL query", "example": "SELECT * WHERE { ?x wdt:P31 wd:Q5 } LIMIT 1", "type": "string" },		"extraprefix": { "description": "Extra prefixes to be added", "example": "PREFIX wikibase: ", "type": "string" },		"state": { "description": "Either \"collapsed\" or \"expanded\", both make the query code collapsible, \"collapsed\" makes it start collapsed. In a list (\"*\" or \"#\" at beginning of line) the \"Collapse\"/\"Expand\" toggle button is displayed next to the link to the Wikidata Query Service.", "type": "string" },		"label": { "description": "Text to be used as the label of the link to the Wikidata Query Service", "type": "content", "default": "Try it!" }	},	"description": "This template displays a SPARQL query with syntax highlighting, prefixes and link to the Wikidata Query Service to run the query. ", "paramOrder": [ "query", "p", "q", "v", "extraprefix", "state", "label" ] }